Forum Discussion

evosus's avatar
evosus
Occasional Contributor
9 years ago
Solved

SwaggerHub - Interactive API Docs 'Try it out!' does not return results

I have an API that validates and produces results using the Try this Operation / 'Send Request' button in the application http://editor.swagger.io/#/.   However, the same API definition does not pr...
  • RonRatovsky's avatar
    RonRatovsky
    9 years ago

    Apologies for the confusion, I had an issue with testing it on my end.

     

    So it seems the problem is that the requests being generated is http and that doesn't work well because SwaggerHub is hosted on https. I can see that you've defined both http and https and the API calls do work with https.

     

    I'd suggest trying to change the order of schemes and put https first to see if that works. If not, for now, you can remove the http from the spec itself. Fixing that issue would require a more elaborate solution from our end but we'll get it done.