Skip to content

Latest commit

 

History

History
69 lines (33 loc) · 1.11 KB

File metadata and controls

69 lines (33 loc) · 1.11 KB

Home > @codemonger-io/cdk-rest-api-with-spec > RestApiWithSpec > addModel

RestApiWithSpec.addModel() 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.

Returns the addModel function augmented with the features to build the OpenAPI definition.

Signature:

addModel(id: string, props: ModelOptionsWithSpec): apigateway.Model;

Parameters

Parameter

Type

Description

id

string

props

ModelOptionsWithSpec

Returns:

apigateway.Model