v1

latestOpenAPI 3.0.0Apache 2.02026-07-172149.1 KB
Request

Handle Request

post/handle-request

Request body

requestHeadersHeaders

Map (string-to-string dictionary) of key value pairs of headers

requestTrailersTrailers

Map (string-to-string dictionary) of key value pairs of trailers

requestBodystring

Base64 encoded body

Example request

{
  "requestHeaders": {
    "content-type": "application/xml",
    "content-length": "40"
  },
  "requestTrailers": {
    "trailer1-key": "value"
  },
  "requestBody": "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"
    }
  }
}

Response

Successful operation

directRespondboolean
responseCodeinteger
headersToAddHeaders

Map (string-to-string dictionary) of key value pairs of headers

headersToReplaceHeaders

Map (string-to-string dictionary) of key value pairs of headers

headersToRemovestring[]

Array of header keys

trailersToAddTrailers

Map (string-to-string dictionary) of key value pairs of trailers

trailersToReplaceTrailers

Map (string-to-string dictionary) of key value pairs of trailers

trailersToRemovestring[]

Array of header keys

bodystring

Base64 encoded body

interceptorContextInterceptorContext

Map (string-to-string dictionary) of key value pairs

propertiesProperties

Map (string-to-string dictionary) of key value pairs of properties

rateLimitKeysRateLimitKeys

Map (string-to-string dictionary) of key value pairs of rate limit keys

Example response

{
  "headersToAdd": {
    "content-type": "application/xml",
    "content-length": "40"
  },
  "headersToRemove": [
    "key1",
    "key2"
  ],
  "trailersToRemove": null,
  "rateLimitKeys": {
    "ratelimit-key-1": "ratelimit-value-1"
  },
  "trailersToAdd": {
    "trailer1-key": "value"
  },
  "dynamicEndpoint": {
    "endpointName": "my-dynamic-endpoint"
  },
  "body": "PGhlbGxvPndvcmxkPC9oZWxsbz4K",
  "responseCode": 200,
  "directRespond": false,
  "headersToReplace": null,
  "interceptorContext": {
    "key1": "value1",
    "key2": "value2"
  },
  "properties": {
    "property-1-key": "property-1-value"
  },
  "trailersToReplace": null
}
All 2 operations