0.2.1 • Published 9 years ago
egg-swagger-ui v0.2.1
egg-swagger-ui
swagger-ui plugin for egg.
Information
- swagger-ui 3.0.6
Usage
First, install it:
npm install -S egg-swagger-uiImport it via config/plugin.js:
module.exports = {
...
'swagger-ui': {
enable: true,
package: 'egg-swagger-ui'
}
...
}Configure it via config/config.<env>.js:
module.export = {
swaggerUi: {
mountPath: '<routePath>'
swaggerFile: '/path/to/swaggerFile'
}
}Default value:
routePath:/docsswaggerFile:assets/default-swagger.yaml- the example swagger file bundled with egg-swagger-ui
License
MIT