richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
749 stars 150 forks source link

"status":404,"error":"Not Found" #164

Open senurita opened 7 years ago

senurita commented 7 years ago

Hi, Swagger docs is running fine on my local machine (localhost:3000) but when i deployed it on my ubuntu server , I ran into 404 error while running swagger api-docs.json , also the thing that surprised me was running individual api from the browser is fetching correct results for ex :- Server_IP/restaurants.json is fetching the results but Server_IP/api-docs.json is giving 404 error. I have checked my basepath in config/initializer/swagger-docs.rb , and in api-docs.json both are pointing to my server IP .