Gateway Response Template
- 印刷する
- PDF
Gateway Response Template
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
ゲートウェイの応答テンプレートの追加
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
responseType | path | Y | String | Response Type 長さ(最大/最小):0 / 45 |
リクエストボディ
{
"mappingTemplate" : "mappingTemplate",
"contentType" : "contentType"
}
応答コード
- 201
応答ボディ
{
"mappingTemplate" : "mappingTemplate",
"responseType" : "responseType",
"contentType" : "contentType",
"apiId" : "apiId"
}
ゲートウェイの応答テンプレートの削除
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
responseType | path | Y | String | Response Type 長さ(最大/最小):0 / 45 |
contentType | query string | Y | String | Content Type 長さ(最大/最小):0 / 100 パターン:[.a-z0-9_+/\-*]+ |
リクエストボディ
- なし
応答コード
- 204
応答ボディ
- なし
ゲートウェイの応答テンプレートの変更
URL
PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
responseType | path | Y | String | Response Type 長さ(最大/最小):0 / 45 |
リクエストボディ
{
"mappingTemplate" : "mappingTemplate",
"contentType" : "contentType"
}
応答コード
- 204
応答ボディ
- なし
この記事は役に立ちましたか?