hapi-aptoma-swagger-template
v0.3.2
Published
Swagger template for use with Hapi powered projects in Aptoma
Downloads
7
Readme
Hapi Aptoma Swagger Template
This is a plugin for rendering Swagger docs with Aptoma's styling inside Hapi projects.
The styling part has not been added yet.
Usage
npm install hapi-aptoma-swagger-template --save
server.register({
register: require('hapi-aptoma-swagger-template'),
options: {
route: '/documentation',
auth: false,
apiAuthMethod: 'jwt', // jwt or apikey
swaggeruiAssetsPath: '/docs/' // same value as hapi-swagger endpoint config option
}
}, callback);