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
}
이 문서가 도움이 되었습니까?