Home > @codemonger-io/cdk-rest-api-with-spec > RestApiWithSpec
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
CDK construct that provisions an API Gateway REST API endpoint and also synthesizes the OpenAPI definition for it.
Signature:
export declare class RestApiWithSpec extends apigateway.RestApi implements IRestApiWithSpec Extends: apigateway.RestApi
Implements: IRestApiWithSpec
NOTE: Please turn on the validation of CDK stacks. If you skip the validation of CDK stacks, this construct cannot synthesize the OpenAPI definition. Because this construct utilizes the validation as a trigger to start synthesis.
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
(BETA) Initializes a REST API with the OpenAPI specification. |
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
(BETA) | ||
|
|
(BETA) Root resource with the OpenAPI definition. |
|
Method |
Modifiers |
Description |
|---|---|---|
|
(BETA) Returns the |