Created
June 16, 2020 13:26
-
-
Save metaskills/1eee9da3baaa5df9ac8426cc5fe12ca0 to your computer and use it in GitHub Desktop.
Sample API Gateway HTTP API Version 1 Event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0", | |
"resource": "$default", | |
"path": "/", | |
"httpMethod": "GET", | |
"headers": { | |
"Content-Length": "0", | |
"Host": "myawesomelambda.example.com", | |
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15", | |
"X-Amzn-Trace-Id": "Root=1-5e7fe714-fee6909429159440eb352c40", | |
"X-Forwarded-For": "72.218.219.201", | |
"X-Forwarded-Port": "443", | |
"X-Forwarded-Proto": "https", | |
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"accept-encoding": "gzip, deflate, br", | |
"accept-language": "en-us", | |
"cookie": "signal1=test; signal2=control" | |
}, | |
"multiValueHeaders": { | |
"Content-Length": [ | |
"0" | |
], | |
"Host": [ | |
"myawesomelambda.example.com" | |
], | |
"User-Agent": [ | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15" | |
], | |
"X-Amzn-Trace-Id": [ | |
"Root=1-5e7fe714-fee6909429159440eb352c40" | |
], | |
"X-Forwarded-For": [ | |
"72.218.219.201" | |
], | |
"X-Forwarded-Port": [ | |
"443" | |
], | |
"X-Forwarded-Proto": [ | |
"https" | |
], | |
"accept": [ | |
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | |
], | |
"accept-encoding": [ | |
"gzip, deflate, br" | |
], | |
"accept-language": [ | |
"en-us" | |
] | |
}, | |
"queryStringParameters": { | |
"colors[]": "red" | |
}, | |
"multiValueQueryStringParameters": { | |
"colors[]": [ | |
"blue", | |
"red" | |
] | |
}, | |
"requestContext": { | |
"accountId": null, | |
"apiId": "n12pmpajak", | |
"domainName": "myawesomelambda.example.com", | |
"domainPrefix": "myawesomelambda", | |
"extendedRequestId": "KSCL-irBIAMEJIA=", | |
"httpMethod": "GET", | |
"identity": { | |
"accessKey": null, | |
"accountId": null, | |
"caller": null, | |
"cognitoAuthenticationProvider": null, | |
"cognitoAuthenticationType": null, | |
"cognitoIdentityId": null, | |
"cognitoIdentityPoolId": null, | |
"principalOrgId": null, | |
"sourceIp": "72.218.219.201", | |
"user": null, | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15", | |
"userArn": null | |
}, | |
"path": "/production/", | |
"protocol": "HTTP/1.1", | |
"requestId": "KSCL-irBIAMEJIA=", | |
"requestTime": "01/Apr/2020:00:44:22 +0000", | |
"requestTimeEpoch": 1585701862143, | |
"resourceId": "$default", | |
"resourcePath": "$default", | |
"stage": "production" | |
}, | |
"pathParameters": null, | |
"stageVariables": null, | |
"body": null, | |
"isBase64Encoded": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment