I am documenting a REST web API with Swagger . I downloaded the petstore example. It consists of resources.json
, which refers to pet.json
and user.json
:
{ "apiVersion":"0.2", "swaggerVersion":"1.0", "basePath":"http://petstore.swagger.wordnik.com/api", "apis": [ { "path":"/pet.{format}", "description":"Operations about pets" }, { "path":"/user.{format}", "description":"Operations about user" } ] }
But even after downloading the source files to my web server, the Swagger UI tells me:
Unable to fetch API Listing. Tried the following urls: http://www.myserver.org/resources.json http://www.myserver.org http://www.myserver.org/resources.json http://www.myserver.org/resources
Can you tell me what reasons Swagger does not find my json file?
source share