Swagger UI server
When documentating APIs in swagger, using the online editor can cause troubles if we try to split documentation in multiple files. swaag
helps to easily host swagger-ui locally.
Note that it hosts swagger-ui
, not swagger-editor
. You must edit the swagger files on your local editor.
To use the CLI, see swaag-cli.
$ npm install swaag
const swaag = require("swaag");
swaag({
entryPoint: "./docs",
watch: true
});
Type: string
Default: docs/openapi.yaml
in current directory
Type: string
Default: 3000
Watches the directory of entryPoint
Type: boolean
Default: false
MIT © Sid Doshi