Adonis swagger provider
Gives nice adonis-like interface with swagger library.
Installation
npm i --save adonis-swagger-provider
- register provider inside
start/app.js
const providers = [
//...
'adonis-swagger-provider/Providers/AdonisSwaggerProvider'
]
-
make
config/swagger.js
as per instructions here -
make
TestSwagger.js
as per instructions here -
Run
adonis serve --dev
go tohttp://localhost:3333/docs/
Commands
node ace swagger:ui
Export swagger-ui
node ace swagger:json
Create swagger.json inside public/swagger.json
node ace swagger:defaultjson
Create default swagger.json inside public/swagger.json
and read config.js /node_modules/adonis-swagger-provider/Samples/Config.js
Thanks
Special thanks to creators of adonis.js and swagger