2016 Mar 11 2:10 AM
Hi,
I'm trying to create a API for a service host on HCP. But while testing in API Test Console keep getting 405 Method not allowed. Looking at HCP Access Log there are no requests with code 405 for that service. Also used debug but no apparent reason for failure (but then again I might not know what to look for).
Seems as though API proxy endpoint does not accept GET which does not make sense. Ideas on what I'm missing?
API endpoint URL: https://trial.apim1.hanatrial.ondemand.com:443/[inumber]trial/piggybankCP/cashposition
Target endpoint: https://piggybank[inumber]trial.hanatrial.ondemand.com/piggy-bank-web/API/cashposition
In API Management created the System, tested destination and working
Then created the API
Testing results in
2016 Mar 11 2:32 AM
Figured out the issue. Proving solution to anyone else making same noob mistake.
I didn't configure the Path Prefix correct. After changing the path prefix in system to "/piggy-bank-web/API" and then also the target endpoint url to "/piggy-bank-web/API" it works.
2016 Mar 11 2:32 AM
Figured out the issue. Proving solution to anyone else making same noob mistake.
I didn't configure the Path Prefix correct. After changing the path prefix in system to "/piggy-bank-web/API" and then also the target endpoint url to "/piggy-bank-web/API" it works.
2016 Mar 16 7:58 PM
Thank you Nic for sharing your experience, and how to troubelshoot. We were all 'noobs' once