qcobjects-handler-openapi
v0.0.17
Published
QCObjects Handler for Open API
Downloads
18
Maintainers
Readme
QCObjects Handler for Open API
QCObjects Handler for Open API requests. This handler will allow you to make a dynamic url like https://example.com/openapi.json
Instructions
- Install this dependency in your project using npm
npm i --save qcobjects-handler-openapi
- In your config.json file, create the following paths
{
"backend": {
"routes": [{
"name": "OpenAPI3.JSON",
"description": "Open API v3 JSON",
"path": "^/openapi.json$",
"microservice": "com.qcobjects.backend.microservice.openapi.json"
},
{
"name": "OpenAPI3.YAML",
"description": "Open API v3 YAML",
"path": "^/openapi.yaml$",
"microservice": "com.qcobjects.backend.microservice.openapi.yaml"
}
]
}
}
- Start the QCObjects HTTP2 Server
qcobjects-server
- Visit https://example.com/openapi.json to view the result