You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the json it generates is this: {"info":{"title":"API","version":"v1"},"basePath":"/","tags":[],"swagger":"2.0","paths":{},"definitions":{},"responses":{},"parameters":{}}
You need to provide the path(s) to your annotated files using the apis parameter.
For example if your files are in the example/routes/ folder, you need to use:
swagger.createSwaggerPage({title: "API",version: "v1",server: this.application,path: "/docs/swagger",apis: ["example/routes/*.js"]// This parameter is an array so that you can pass multiple paths if needed});
Sorry, my bad english.
I'm using this code to generate the documentation:
But the json it generates is this:
{"info":{"title":"API","version":"v1"},"basePath":"/","tags":[],"swagger":"2.0","paths":{},"definitions":{},"responses":{},"parameters":{}}
"restify": "^8.5.1"
"restify-swagger-jsdoc": "^3.2.3"
The text was updated successfully, but these errors were encountered: