Name | Type | Description |
---|---|---|
basePath |
|
The base path on which the Controller API is served. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). |
definitions |
DefinitionsObject
|
JSON Schema definitions of models used by the controller |
paths |
PathsObject
|
The available paths and operations for the API. |
Data structure for REST related metadata
Name | Type | Description |
---|---|---|
path |
string
|
Data structure for REST related metadata |
spec |
OperationObject
|
Data structure for REST related metadata |
verb |
string
|
Data structure for REST related metadata |
Get the controller spec for the given class
Name | Type | Description |
---|---|---|
constructor |
Function
|
Controller class |
Name | Type | Description |
---|---|---|
jsonDef |
JsonDefinition
|
Expose a Controller method as a REST API operation
mapped to DELETE
request method.
Name | Type | Description |
---|---|---|
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |
Expose a Controller method as a REST API operation
mapped to GET
request method.
Name | Type | Description |
---|---|---|
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |
Expose a Controller method as a REST API operation.
Name | Type | Description |
---|---|---|
verb |
string
|
HTTP verb, e.g. |
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |
Expose a Controller method as a REST API operation
mapped to PATCH
request method.
Name | Type | Description |
---|---|---|
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |
Expose a Controller method as a REST API operation
mapped to POST
request method.
Name | Type | Description |
---|---|---|
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |
Expose a Controller method as a REST API operation
mapped to PUT
request method.
Name | Type | Description |
---|---|---|
path |
string
|
The URL path of this operation, e.g. |
spec |
OperationObject
|
The OpenAPI specification describing parameters and responses of this operation. |