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文件?