Create a model in API Gateway
Use the API Gateway console to create a model for an API.
Prerequisites
-
You must have an API available in API Gateway. Follow the instructions in Creating a REST API in Amazon API Gateway.
Create a model with the API Gateway console
Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway
. Choose a REST API.
-
Choose Models.
-
Choose Create.
-
For Model Name, type a name for the model.
-
For Content Type, type the model's content type (for example,
application/json
for JSON). -
(Optional) For Model description, type a description for the model.
-
For Model schema, type the model's schema. For more information about model schemas, see Models.
-
Choose Create model.