@opi_pib/node-openapi
v3.0.3
Published
Openapi tools
Keywords
Readme
@opi_pib/node-openapi
Install
npm install @opi_pib/node-openapiCli commands
Display cli documentation
openapi helpCompile openapi.json from docs
openapi build spec --source=./docs/index.json --dist=./dist/openapi.jsonServe documentation in browser
openapi serve editor --port=3010 --host=http://localhost --source=./dist/openapi.json --basePath=/v1Serve openapi.json
openapi serve spec --port=3011 --host=http://localhost --source=./dist/openapi.jsonBuild typescript interfaces (needs 'openapi serve spec' command running)
openapi serve spec
openapi build typescript --source=http://localhost:3011 --dist=./src/rest/api --typesOnly=trueDefault config
{
basePath: '/v1',
host: 'http://localhost',
port: {
editor: '3010',
spec: '3011'
},
dist: {
folder: './dist',
fileName: 'index'
},
sourceUrl: './src/docs/index.json',
typescript: {
dist: './src/rest/api',
typesOnly: true,
services: false,
promises: false
}
};