Home > cdk-rest-api-with-spec > IResourceWithSpec > addResource
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.
Adds a new child resource with the OpenAPI definition.
Signature:
addResource(pathPart: string, options?: ResourceOptionsWithSpec): IResourceWithSpec;
Parameter | Type | Description |
---|---|---|
pathPart | string | |
options | ResourceOptionsWithSpec | (Optional) |
Returns: