@phenyl/api-explorer
v4.1.0
Published
Automatically renders API explorer pages like swagger
Downloads
266
Keywords
Readme
phenyl-api-explorer
Automatically renders API explorer pages like swagger UI.
Install
npm install phenyl-api-explorer
Usage
const PhenylApiExplorer = require('phenyl-api-explorer').default
const server = new PhenylHttpServer(http.createServer(), {
// ...
customRequestHandler: new PhenylApiExplorer(functionalGroup, { path: '/explorer' }).handler,
})
Or ES6:
import PhenylApiExplorer from 'phenyl-api-explorer'
// ...
For more details, please refer our example.
LICENSE
Apache License 2.0