Page Contents
Home > @loopback/openapi-spec-builder > OperationSpecBuilder
OperationSpecBuilder class
A builder for creating OperationObject specifications.
Signature:
export declare class OperationSpecBuilder extends BuilderBase<OperationObject>
Extends: BuilderBase<OperationObject>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Define the controller name (controller name). | ||
|
Define the operationId | ||
|
Define the operation name (controller method name). | ||
|
Describe one more parameters accepted by the operation. Note that parameters are positional in OpenAPI Spec, therefore the first call of | ||
|
Describe a response for a given HTTP status code. | ||
|
Describe tags associated with the operation |