github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/apigw-restapi-openapi-request.json (about)

     1  {
     2    "resource": "/{proxy+}",
     3    "path": "/hello/world",
     4    "httpMethod": "POST",
     5    "headers": {
     6      "Accept": "*/*",
     7      "Accept-Encoding": "gzip, deflate",
     8      "cache-control": "no-cache",
     9      "CloudFront-Forwarded-Proto": "https",
    10      "CloudFront-Is-Desktop-Viewer": "true",
    11      "CloudFront-Is-Mobile-Viewer": "false",
    12      "CloudFront-Is-SmartTV-Viewer": "false",
    13      "CloudFront-Is-Tablet-Viewer": "false",
    14      "CloudFront-Viewer-Country": "US",
    15      "Content-Type": "application/json",
    16      "headerName": "headerValue",
    17      "Host": "gy415nuibc.execute-api.us-east-1.amazonaws.com",
    18      "Postman-Token": "9f583ef0-ed83-4a38-aef3-eb9ce3f7a57f",
    19      "User-Agent": "PostmanRuntime/2.4.5",
    20      "Via": "1.1 d98420743a69852491bbdea73f7680bd.cloudfront.net (CloudFront)",
    21      "X-Amz-Cf-Id": "pn-PWIJc6thYnZm5P0NMgOUglL1DYtl0gdeJky8tqsg8iS_sgsKD1A==",
    22      "X-Forwarded-For": "54.240.196.186, 54.182.214.83",
    23      "X-Forwarded-Port": "443",
    24      "X-Forwarded-Proto": "https"
    25    },
    26    "multiValueHeaders": {
    27      "Accept": ["*/*"],
    28      "Accept-Encoding": ["gzip, deflate"],
    29      "cache-control": ["no-cache"],
    30      "CloudFront-Forwarded-Proto": ["https"],
    31      "CloudFront-Is-Desktop-Viewer": ["true"],
    32      "CloudFront-Is-Mobile-Viewer": ["false"],
    33      "CloudFront-Is-SmartTV-Viewer": ["false"],
    34      "CloudFront-Is-Tablet-Viewer": ["false"],
    35      "CloudFront-Viewer-Country": ["US"],
    36      "Content-Type": ["application/json"],
    37      "headerName": ["headerValue"],
    38      "Host": ["gy415nuibc.execute-api.us-east-1.amazonaws.com"],
    39      "Postman-Token": ["9f583ef0-ed83-4a38-aef3-eb9ce3f7a57f"],
    40      "User-Agent": ["PostmanRuntime/2.4.5"],
    41      "Via": ["1.1 d98420743a69852491bbdea73f7680bd.cloudfront.net (CloudFront)"],
    42      "X-Amz-Cf-Id": ["pn-PWIJc6thYnZm5P0NMgOUglL1DYtl0gdeJky8tqsg8iS_sgsKD1A=="],
    43      "X-Forwarded-For": ["54.240.196.186, 54.182.214.83"],
    44      "X-Forwarded-Port": ["443"],
    45      "X-Forwarded-Proto": ["https"]
    46    },
    47    "queryStringParameters": {
    48      "name": "me"
    49    },
    50    "multiValueQueryStringParameters": {
    51      "name": ["me"]
    52    },
    53    "pathParameters": {
    54      "proxy": "hello/world"
    55    },
    56    "stageVariables": {
    57      "stageVariableName": "stageVariableValue"
    58    },
    59    "requestContext": {
    60      "accountId": "12345678912",
    61      "resourceId": "roq9wj",
    62      "operationName": "HelloWorld",
    63      "stage": "testStage",
    64      "domainName": "gy415nuibc.execute-api.us-east-2.amazonaws.com",
    65      "domainPrefix": "y0ne18dixk",
    66      "requestId": "deef4878-7910-11e6-8f14-25afc3e9ae33",
    67      "protocol": "HTTP/1.1",
    68      "identity": {
    69        "cognitoIdentityPoolId": "theCognitoIdentityPoolId",
    70        "accountId": "theAccountId",
    71        "cognitoIdentityId": "theCognitoIdentityId",
    72        "caller": "theCaller",
    73        "apiKey": "theApiKey",
    74        "apiKeyId": "theApiKeyId",
    75        "accessKey": "ANEXAMPLEOFACCESSKEY",
    76        "sourceIp": "192.168.196.186",
    77        "cognitoAuthenticationType": "theCognitoAuthenticationType",
    78        "cognitoAuthenticationProvider": "theCognitoAuthenticationProvider",
    79        "userArn": "theUserArn",
    80        "userAgent": "PostmanRuntime/2.4.5",
    81        "user": "theUser"
    82      },
    83      "authorizer": {
    84        "principalId": "admin",
    85        "clientId": 1,
    86        "clientName": "Exata"
    87      },
    88      "resourcePath": "/{proxy+}",
    89      "httpMethod": "POST",
    90      "requestTime": "15/May/2020:06:01:09 +0000",
    91      "requestTimeEpoch": 1589522469693,
    92      "apiId": "gy415nuibc"
    93    },
    94    "body": "{\r\n\t\"a\": 1\r\n}"
    95  }