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
응답 바디
- 없음
이 문서가 도움이 되었습니까?