लाने में असमर्थ मैं Swagger के साथ एक आरईएसटी वेब एपीआई दस्तावेज कर रहा हूं। मैंने पेटस्टोर उदाहरण डाउनलोड किया है। यह resources.json
जो संदर्भ देता है के होते हैं pet.json
और 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"
}
]
}
लेकिन मेरी वेब सर्वर के लिए मूल फ़ाइलों को अपलोड करने के बाद भी, स्वैगर यूआई मुझसे कहता है:
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
आप बता सकते हैं कि स्वैगर नहीं मिल का कारण बनता है मेरी जेसन फाइल?