api-platform-samples
api-platform-samples copied to clipboard
invoke.sh in all the sample has issue while hitting from curl.
Hi, I have successfully configured the setup, provisioned the sample all but whenever I run ./invoke.sh from any environment the curl throw an error.
`curl http://itravindrasingh-eval-test.https://itravindrasingh-eval-test.apigee.net/v1/learn-edge/json?apikey=dLKTcVdGoSqVnD3JsBpBuw75F091Syy3
Response:
curl: (6) Could not resolve host: itravindrasingh-eval-test.https`
Because in invoke.sh file the $org-$env.$api_domain are getting concatenation which seems incorrect or maybe it is apigeetool configuration issue with the console.
Hi,
You need to check the configurations in "setenv.sh" which forms the URL for the curl request.
org="yourID-eval" | you can check this by logging-in to your account
username="emailID" | your login account id
url="https://api.enterprise.apigee.com"
env="test" | test or prod
api_domain="apigee.net"
Cheers, Shubham