6
我正在用Swagger来记录REST Web API。我已经下载了petstore示例。它由一个引用resources.json
的pet.json
和user.json
:Swagger用户界面错误:无法获取API列表
{
"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"
}
]
}
但即使是原始文件上传到我的Web服务器后,扬鞭UI告诉我:
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
你能告诉是什么原因导致扬鞭找不到我的json文件?