-
Install into your project
yarn add @yhnavein/nswag@v0.0.1-alpha7 -
Add
nswag.jsonand configure your settings -
Add task for generating services in
package.json:
"scripts": {
"api": "nswag run nswag.json"
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "Swagger Petstore", | |
| "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.", | |
| "license": { | |
| "name": "MIT", | |
| "url": "http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT" | |
| }, | |
| "version": "1.0.0" |
Install into your project
yarn add @yhnavein/nswag@v0.0.1-alpha7
Add nswag.json and configure your settings
Add task for generating services in package.json:
"scripts": {
"api": "nswag run nswag.json"