Error while invoking REST API from Experian Studio VM
Background
Experian data Studio version - 2.14.14
SSL setup done on the data studio url and private CA is added to the trust store under E:\ApertureDataStudio\certificates\cacerts
API Key genrerated with 365 days validity and able to invoke API via Swagger
Issue
While trying to invoke the CURL command from command prompt using below command
curl -X 'GET' 'https://<<DOMAIN_NAME>>/api/default/datasets/<<SPACE_NAME>>' -H 'accept: application/json' -H 'Authorization: Default <<API_KEY>>'
I am getting below error
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: Default
curl: (3) URL rejected: Bad hostname
Can someone help me if any other additional setting is required to call the Https url for Aperture Data Studio?
Answers
-
If you make your first API call using Swagger then it will give you the curl command:
You can access Swagger from Aperture application in top right corner click help ? then 'Try out API
1 -
Specifically in your case, using double quotes rather than single quotes in the cURL command should resolve the issues, assuming you're running cURL from windows commandline. That's how it displays in my swagger page:
I think single quotes would be OK for Linux shell.
0