Skip to content

Latest commit

 

History

History
87 lines (41 loc) · 1.25 KB

File metadata and controls

87 lines (41 loc) · 1.25 KB

Home > @codemonger-io/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