richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

senurita opened this issue · comments

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 .