Methods
exposeSwagger(pathopt, optionsopt) → {ModelAPIExpress}
exposeSwagger exposes the swagger document. If document is not created
the method forces model description;
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
String |
<optional> |
'/swagger.json' | path to mount swagger document | |||||||||||||||
options |
Object |
<optional> |
options for swagger document exposition
Properties
|
- Source:
Returns:
the API object
- Type
- ModelAPIExpress
exposeSwaggerUi(pathopt, optionsopt) → {ModelAPIExpress}
exposeSwaggerUi exposes swagger ui application
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
String |
<optional> |
'/swagger-ui' | the path to mount swagger ui app | ||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
options to expose swagger ui
Properties
|
- Source:
Returns:
the API object
- Type
- ModelAPIExpress
swaggerDoc(optionsopt) → {Object}
swaggerDoc builds Swagger document for the API
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
api description parameters (http://dscheglov.github.io/merest/ModelAPIExpress.html)
Properties
|
- Source:
Returns:
Swagger document
- Type
- Object