We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like swagger path is hard codded to api-docs.json. Any way to make it configurable so api-docs or v1/api-docs can be used instead?
Thanks.
The text was updated successfully, but these errors were encountered:
I'm currently working on it: you'll be able to set your own descriptor path when adding the generator middleware on your express application:
var app = express(); app.use(express.cookieParser()) .use(express.methodOverride()) .use(express.bodyParser()) .use(swagger.generator( app, {apiVersion: '1.0', ...}, [{api: require('./api.yml'), controller: require('./controller')}], {descPath: '/v1/api-docs'} ));
Stay tunned for version 1.4.0 !
Sorry, something went wrong.
4b41ef2
No branches or pull requests
It looks like swagger path is hard codded to api-docs.json.
Any way to make it configurable so api-docs or v1/api-docs can be used instead?
Thanks.
The text was updated successfully, but these errors were encountered: