cancel
Showing results for 
Search instead for 
Did you mean: 

404 when accessing API

SOLVED
Highlighted
New Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: 404 when accessing API

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".


Helen Kosova
SmartBear Documentation Team Lead
________________________
Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
Moderator

Re: 404 when accessing API

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".


Helen Kosova
SmartBear Documentation Team Lead
________________________
Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
New Contributor

Re: 404 when accessing API

Thank you very much, I did as suggested and it solved my issue.

New Here?
Join us and watch the welcome video:
Announcements