I downloaded sample server program from http://editor.swagger.io. (Swagger Petstore (Simple), NodeJS)
Then I deployed into my server but the path is showed "Default". How can I change it?
This sample shows the name of paths. This is what I want to do it. http://petstore.swagger.io/#/
package.json
"dependencies": {
"connect": "^3.2.0",
"js-yaml": "^3.3.0",
"swagger-tools": "0.9.*"
}
=============================
Update
This may be related. How to change Swagger-UI "Default" Path
I'm not sure how JSON file is necessary. I'm using yaml. I may be choose .json or .yaml.
And also I'm wondering this is related to my issue..
{
schemaValidationMessages: [
{
level: "error",
message: "Can't read from file http://xxxxx/api-docs"
}
]
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…