hapi-aptoma-swagger-template

0.3.2 • Public • Published

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);

Readme

Keywords

Package Sidebar

Install

npm i hapi-aptoma-swagger-template

Weekly Downloads

1

Version

0.3.2

License

MIT

Last publish

Collaborators

  • gunnarlium
  • aptoma.peter