If I click on this, I get to the swagger test page. But when I try to execute any of the methods, I see a 200 success, but also a ‘TypeError: Failed to fetch’.
The Curl cmd shown in the UI is valid and returns the expected response if i run it on a server. The url in the curl cmd, loaded into a browser, also returns the expected response.
So why doesn’t this test page return the expected response?
Can you check and share with us the error you’re getting in your browser’s console? It may be your application needs to send back a Access-Control-Allow-Origin: * header in order to communicate.
In this case since the portal is served via HTTPS, all calls made from API spec must use HTTPS as well. So you are correct, it is a requirement that your API serve its endpoints via HTTPS, and they should be documented as such in the spec.