Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1007 Bytes

cdk-rest-api-with-spec.iresourcewithspec.addresource.md

File metadata and controls

28 lines (17 loc) · 1007 Bytes

Home > cdk-rest-api-with-spec > IResourceWithSpec > addResource

IResourceWithSpec.addResource() method

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;

Parameters

Parameter Type Description
pathPart string
options ResourceOptionsWithSpec (Optional)

Returns:

IResourceWithSpec