Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1022 Bytes

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

File metadata and controls

29 lines (18 loc) · 1022 Bytes

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

IResourceWithSpec.addMethod() 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 method with the OpenAPI definition.

Signature:

addMethod(httpMethod: string, target?: apigateway.Integration, options?: MethodOptionsWithSpec): apigateway.Method;

Parameters

Parameter Type Description
httpMethod string
target apigateway.Integration (Optional)
options MethodOptionsWithSpec (Optional)

Returns:

apigateway.Method