phenyl-api-explorer
v0.2.1
Published
Automatically renders API explorer pages like swagger
Downloads
19
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