1.1.2 • Published 2 months ago
@opi_pib/node-openapi v1.1.2
@opi_pib/node-openapi
Install
npm install @opi_pib/node-openapi
Cli commands
Display cli documentation
openapi help
Compile openapi.json from docs
openapi build spec --source=./docs/index.json --dist=./dist/openapi.json
Serve documentation in browser
openapi serve editor --port=3010 --host=http://localhost --source=./dist/openapi.json --basePath=/v1
Serve openapi.json
openapi serve spec --port=3011 --host=http://localhost --source=./dist/openapi.json
Build typescript interfaces (needs 'openapi serve spec' command running)
openapi serve spec
openapi build typescript --source=http://localhost:3011 --dist=./src/rest/api --typesOnly=true
Default config
{
basePath: '/v1',
host: 'http://localhost',
port: {
editor: '3010',
spec: '3011'
},
dist: {
folder: './dist',
fileName: 'index'
},
sourceUrl: './src/docs/index.json',
tsModelsUrl: './src/rest/api'
};
1.1.2
2 months ago
1.1.1
5 months ago
1.0.19
5 months ago
1.1.0
5 months ago
1.0.18
6 months ago
1.0.17
6 months ago
1.0.16
6 months ago
1.0.20
5 months ago
1.0.15
6 months ago
1.0.14
6 months ago
1.0.13
12 months ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago