在 API Gateway 中创建模型
使用 API Gateway 控制台为 API 创建模型。
先决条件
-
API Gateway 中必须有可用的 API。按照中的说明进行操作在 Amazon API Gateway 中创建 REST API
使用 API Gateway 控制台创建模型
通过以下网址登录到 Amazon API Gateway 控制台:https://console.aws.amazon.com/apigateway
。 选择一个 REST API。
-
选择 Models (模型)。
-
选择 Create (创建) 。
-
对于 Model Name(模型名称),键入模型的名称。
-
对于 Content Type(内容类型),键入模型的内容类型(例如,对于 JSON,键入
application/json
)。 -
(可选)对于模型描述,键入模型的描述。
-
对于 Model schema(模型架构),键入模型的架构。有关模型架构的更多信息,请参阅 模型。
-
选择 Create model (创建模型)。