adonis-swagger-provider

1.1.3 • Public • Published

Adonis swagger provider

Gives nice adonis-like interface with swagger library.

Installation

  1. npm i --save adonis-swagger-provider
  2. register provider inside start/app.js
const providers = [
    //...
  'adonis-swagger-provider/Providers/AdonisSwaggerProvider'
]
  1. make config/swagger.js as per instructions here

  2. make TestSwagger.js as per instructions here

  3. Run adonis serve --dev go to http://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

Package Sidebar

Install

npm i adonis-swagger-provider

Weekly Downloads

3

Version

1.1.3

License

ISC

Unpacked Size

18.3 MB

Total Files

25

Last publish

Collaborators

  • nbarisic