Hapi Swagger RBAC
@xtech-pub/hapi-swagger-rbac instead.
This package has been deprecated, please useA Hapi plugin to configure RBAC in a swagger specification through hapi-rbac.
Usage
1. Swagger spec
Add the 'hapi-rbac' rules to the paths of the swagger spec using the property x-rbac
.
Example:
2. Register plugin
Register the plugin with the following options:
spec
: swagger spec with all refs resolvedhapiRbac
: options to pass to 'hapi-rbac'
Example:
Server;