Page Contents
Home > @loopback/openapi-spec-builder > OpenApiSpecBuilder
OpenApiSpecBuilder class
A builder for creating OpenApiSpec documents.
Signature:
export declare class OpenApiSpecBuilder extends BuilderBase<OpenAPIObject>
Extends: BuilderBase<OpenAPIObject>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Define a new ComponentsObject. | ||
|
Define a new OperationObject at the given path and verb (method). | ||
|
Define a new operation that returns a string response. |