404 when accessing API
Hello,
I built my first API with SwaggerHub and I was even able to access it on the server url - for a time. After a while (I don't know what I might have done wrong), the endpoint started to return 404. That applies also when testing the endpoint using the "Try it out" button in the right panel.
What settings do I have to alter to make it work again?
My API is https://app.swaggerhub.com/apis/elaborate/1.0/1.0#/, since it's private I shared it to the swaggerhub-support user.
Thanks.
Hi ofrei,
It looks like your API was renamed from "STO" to "1.0" at some point. Renaming an API does not automatically update the mock server.
If you have the "API Auto Mocking" integration in your API, then simply remove the "servers" from the spec and save your API - this will replace the "servers" with a new mock server.
If you do not use "API Auto Mocking", add it and then you will be able to use "try it out".