Amazon API Gateway REST API Reference

authorizer:test-invoke

Simulates the execution of an Authorizer with headers, parameters, and an incoming request body.

HTTP Request

POST /restapis/<restapi_id>/authorizers/<authorizer_id>

Request Body

{
  "headers" : {
    "String" : "String"
  },
  "multiValueHeaders" : {
    "String" : [ "String" ]
  },
  "pathWithQueryString" : "String",
  "body" : "String",
  "stageVariables" : {
    "String" : "String"
  },
  "additionalContext" : {
    "String" : "String"
  }
}

Request Body Fields

The request accepts the following fields in JSON format.

  • headers
  • A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

  • multiValueHeaders
  • The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

  • pathWithQueryString
  • The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

  • body
  • The simulated request body of an incoming invocation request.

  • stageVariables
  • A key-value map of stage variables to simulate an invocation on a deployed Stage.

  • additionalContext
  • A key-value map of additional context variables.

Response

TestInvokeAuthorizerResponse

Remarks

See Also

AWS CLI