Gateway Response
- 印刷する
- PDF
Gateway Response
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
ゲートウェイの応答照会
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
リクエストボディ
- なし
応答コード
- 200
応答ボディ
{
"gatewayResponses" : [ {
"headers" : [ {
"responseType" : "responseType",
"headerName" : "headerName",
"headerValue" : "headerValue",
"apiId" : "apiId"
} ],
"isDefault" : true,
"responseType" : "responseType",
"templates" : [ {
"mappingTemplate" : "mappingTemplate",
"responseType" : "responseType",
"contentType" : "contentType",
"apiId" : "apiId"
} ],
"responseName" : "responseName",
"apiId" : "apiId",
"statusCode" : 0
} ]
}
ゲートウェイの応答の初期化
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
responseType | path | Y | String | Response Type 長さ(最大/最小):0 / 45 |
リクエストボディ
- なし
応答コード
- 204
応答ボディ
- なし
ゲートウェイ応答ステータスコードを追加
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}
リクエストパラメータ
名前 | 位置 | 必須かどうか | タイプ | 説明 |
---|---|---|---|---|
productId | path | Y | String | Product Id 長さ(最大/最小):0 / 10 |
apiId | path | Y | String | Api Id 長さ(最大/最小):0 / 10 |
responseType | path | Y | String | Response Type 長さ(最大/最小):0 / 45 |
リクエストボディ
{
"statusCode" : 0
}
応答コード
- 200
応答ボディ
{
"headers" : [ {
"responseType" : "responseType",
"headerName" : "headerName",
"headerValue" : "headerValue",
"apiId" : "apiId"
} ],
"isDefault" : true,
"responseType" : "responseType",
"templates" : [ {
"mappingTemplate" : "mappingTemplate",
"responseType" : "responseType",
"contentType" : "contentType",
"apiId" : "apiId"
} ],
"responseName" : "responseName",
"apiId" : "apiId",
"statusCode" : 0
}
この記事は役に立ちましたか?