Gateway Response Template
- Print
- PDF
Gateway Response Template
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Add Gateway Response template
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
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
{
"mappingTemplate" : "mappingTemplate",
"contentType" : "contentType"
}
Response Code
- 201
Response Body
{
"mappingTemplate" : "mappingTemplate",
"responseType" : "responseType",
"contentType" : "contentType",
"apiId" : "apiId"
}
Delete Gateway Response template
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
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 |
contentType | query string | Y | String | Content Type Length(Min/Max): 0/100 Pattern: [.a-z0-9_+/\-*]+ |
Request Body
- None
Response Code
- 204
Response Body
- None
Modify Gateway Response template
URL
PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/responses/{response-type}/templates
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
{
"mappingTemplate" : "mappingTemplate",
"contentType" : "contentType"
}
Response Code
- 204
Response Body
- None
Was this article helpful?