Gateway Response
- Print
- PDF
Gateway Response
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Get Gateway Responses
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
apiId | path | Y | String | Api Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 200
Response Body
{
"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
} ]
}
Reset custom Gateway Response
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
apiId | path | Y | String | Api Id Length(Min/Max): 0/10 |
responseType | path | Y | String | Response Type Length(Min/Max): 0/45 |
Request Body
- None
Response Code
- 204
Response Body
- None
Set gateway response status code
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}
Request Parameter
Name | Position | Required | Type | Description |
---|---|---|---|---|
productId | path | Y | String | Product Id Length(Min/Max): 0/10 |
apiId | path | Y | String | Api Id Length(Min/Max): 0/10 |
responseType | path | Y | String | Response Type Length(Min/Max): 0/45 |
Request Body
{
"statusCode" : 0
}
Response Code
- 200
Response Body
{
"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
}
Was this article helpful?