Method
- Print
- PDF
Method
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Add a method
URL
POST https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
Request Body
{
"methodDescription" : "methodDescription",
"mockEndPoint" : {
"headers" : {
"key" : "headers"
},
"response" : "response",
"httpStatus" : 0
},
"methodName" : "ANY",
"ncpEndPoint" : {
"method" : "ANY",
"stream" : true,
"service" : "service",
"actionId" : "actionId",
"region" : "KR",
"url" : "url",
"actionName" : "actionName"
},
"requiredApiKey" : {
"required" : true
},
"validation" : {
"headers" : [ "headers" ],
"queryStrings" : [ "queryStrings" ],
"type" : "NONE"
},
"httpEndPoint" : {
"method" : "ANY",
"stream" : true,
"url" : "url"
},
"authentication" : {
"authorizerId" : "authorizerId",
"platform" : "NONE"
}
}
Response Code
- 201
Response Body
{
"methods" : [ {
"methodDescription" : "methodDescription",
"resourceId" : "resourceId",
"useBodyWhenFormData" : true,
"modifier" : "modifier",
"resourcePath" : "resourcePath",
"methodName" : "ANY",
"ncpEndPoint" : {
"method" : "ANY",
"stream" : true,
"service" : "service",
"actionId" : "actionId",
"region" : "KR",
"url" : "url",
"actionName" : "actionName"
},
"requiredApiKey" : {
"required" : true
},
"mockEndPoint" : {
"headers" : {
"key" : "headers"
},
"response" : "response",
"httpStatus" : 0
},
"produces" : "produces",
"tenantId" : "tenantId",
"consumers" : "consumers",
"apiId" : "apiId",
"validation" : {
"headers" : [ "headers" ],
"queryStrings" : [ "queryStrings" ],
"type" : "NONE"
},
"authentication" : {
"authorizerId" : "authorizerId",
"platform" : "NONE"
},
"httpEndPoint" : {
"method" : "ANY",
"stream" : true,
"url" : "url"
}
} ]
}
Delete a method
URL
DELETE https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
- None
Response Code
- 204
Response Body
- None
Get method consumers
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/consumers
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
- None
Response Code
- 200
Response Body
{
"consumers" : "consumers"
}
Get method produces
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/produces
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
- None
Response Code
- 200
Response Body
{
"produces" : "produces"
}
Get methods with filters
URL
GET https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
Request Body
- None
Response Code
- 200
Response Body
{
"methods" : [ {
"methodDescription" : "methodDescription",
"resourceId" : "resourceId",
"useBodyWhenFormData" : true,
"endpointCode" : "endpointCode",
"modifier" : "modifier",
"resourcePath" : "resourcePath",
"methodName" : "ANY",
"ncpEndPoint" : {
"method" : "ANY",
"stream" : true,
"service" : "service",
"actionId" : "actionId",
"region" : "KR",
"url" : "url",
"actionName" : "actionName"
},
"requiredApiKey" : {
"required" : true
},
"mockEndPoint" : {
"headers" : {
"key" : "headers"
},
"response" : "response",
"httpStatus" : 0
},
"endpointActionId" : "endpointActionId",
"produces" : "produces",
"tenantId" : "tenantId",
"consumers" : "consumers",
"methodFilters" : [ {
"configJson" : "configJson",
"resourceId" : "resourceId",
"filterName" : "AUTH",
"apiId" : "apiId",
"methodCode" : "methodCode"
} ],
"apiId" : "apiId",
"validation" : {
"headers" : [ "headers" ],
"queryStrings" : [ "queryStrings" ],
"type" : "NONE"
},
"authentication" : {
"authorizerId" : "authorizerId",
"platform" : "NONE"
},
"endpointConfigJson" : "endpointConfigJson",
"httpEndPoint" : {
"method" : "ANY",
"stream" : true,
"url" : "url"
}
} ]
}
Modify method consumers
URL
PUT https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/consumers
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
{
"consumers" : "consumers"
}
Response Code
- 200
Response Body
{
"consumers" : "consumers"
}
Modify method produces
URL
PUT https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}/produces
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
{
"produces" : "produces"
}
Response Code
- 200
Response Body
{
"produces" : "produces"
}
Modify a method
URL
PATCH https://apigateway.apigw.ntruss.com/api/v1/products/{product-id}/apis/{api-id}/resources/{resource-id}/methods/{method-name}
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 |
resourceId | path | Y | String | Resource Id Length(Min/Max): 0/10 |
methodName | path | Y | String | Method Name Allowable values: ANY, GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD |
Request Body
{
"methodDescription" : "methodDescription",
"mockEndPoint" : {
"headers" : {
"key" : "headers"
},
"response" : "response",
"httpStatus" : 0
},
"ncpEndPoint" : {
"method" : "ANY",
"stream" : true,
"service" : "service",
"actionId" : "actionId",
"region" : "KR",
"url" : "url",
"actionName" : "actionName"
},
"requiredApiKey" : {
"required" : true
},
"validation" : {
"headers" : [ "headers" ],
"queryStrings" : [ "queryStrings" ],
"type" : "NONE"
},
"httpEndPoint" : {
"method" : "ANY",
"stream" : true,
"url" : "url"
},
"authentication" : {
"authorizerId" : "authorizerId",
"platform" : "NONE"
}
}
Response Code
- 200
Response Body
{
"method" : {
"methodDescription" : "methodDescription",
"resourceId" : "resourceId",
"useBodyWhenFormData" : true,
"modifier" : "modifier",
"resourcePath" : "resourcePath",
"methodName" : "ANY",
"ncpEndPoint" : {
"method" : "ANY",
"stream" : true,
"service" : "service",
"actionId" : "actionId",
"region" : "KR",
"url" : "url",
"actionName" : "actionName"
},
"requiredApiKey" : {
"required" : true
},
"mockEndPoint" : {
"headers" : {
"key" : "headers"
},
"response" : "response",
"httpStatus" : 0
},
"produces" : "produces",
"tenantId" : "tenantId",
"consumers" : "consumers",
"apiId" : "apiId",
"validation" : {
"headers" : [ "headers" ],
"queryStrings" : [ "queryStrings" ],
"type" : "NONE"
},
"authentication" : {
"authorizerId" : "authorizerId",
"platform" : "NONE"
},
"httpEndPoint" : {
"method" : "ANY",
"stream" : true,
"url" : "url"
}
}
}
Was this article helpful?