Response
Handle Response
post/handle-response
Request body
Example request
{
"responseCode": 200,
"requestHeaders": {
"content-type": "application/xml",
"content-length": "40"
},
"requestTrailers": {
"trailer1-key": "value"
},
"requestBody": "PGhlbGxvPndvcmxkPC9oZWxsbz4K",
"responseHeaders": {
"content-type": "application/xml",
"content-length": "40"
},
"responseTrailers": {
"trailer1-key": "value"
},
"responseBody": "PGhlbGxvPndvcmxkPC9oZWxsbz4K",
"invocationContext": {
"requestId": "75269e44-f797-4432-9906-cf39e68d6ab8",
"protocol": "HTTP/1.1",
"scheme": "https",
"apiName": "PetStore",
"apiVersion": "v1.0.0",
"vhost": "localhost",
"supportedMethods": "GET POST",
"method": "POST",
"basePath": "/petstore",
"path": "/petstore/pet/1",
"pathTemplate": "/pet/{petID}",
"source": "192.168.8.332:8080",
"prodClusterName": "carbon.super_clusterProd_localhost_Online-Storev1.0.0",
"authenticationContext": {
"tokenType": "JWT",
"token": "xxxxxx-xxxx-xxxxxx-xxxx",
"keyType": "PRODUCTION"
}
},
"interceptorContext": {
"key1": "value1",
"key2": "value2"
}
}Response
Successful operation
Example response
{
"headersToReplace": null,
"headersToAdd": {
"content-type": "application/xml",
"content-length": "40"
},
"headersToRemove": [
"key1",
"key2"
],
"trailersToRemove": null,
"trailersToAdd": {
"trailer1-key": "value"
},
"body": "PGhlbGxvPndvcmxkPC9oZWxsbz4K",
"properties": {
"property-1-key": "property-1-value"
},
"responseCode": 200,
"trailersToReplace": null
}