Last active
December 10, 2017 07:39
-
-
Save ibejohn818/05ac2aee6cdf84273533587478239b26 to your computer and use it in GitHub Desktop.
Mock Lambda Proxy Request
This file contains hidden or 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
{ | |
"body": "{\"test\":\"body\"}", | |
"pathParameters": { | |
"proxy": "foo" | |
}, | |
"httpMethod": "POST", | |
"stageVariables": { | |
"baz": "qux" | |
}, | |
"resource": "/{proxy+}", | |
"path": "/foo/asdfasd/asdfasdf/", | |
"requestContext": { | |
"resourcePath": "/{proxy+}", | |
"resourceId": "123456", | |
"apiId": "1234567890", | |
"httpMethod": "POST", | |
"requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", | |
"accountId": "123456789012", | |
"identity": { | |
"apiKey": null, | |
"userArn": null, | |
"cognitoAuthenticationType": null, | |
"caller": null, | |
"userAgent": "Custom User Agent String", | |
"user": null, | |
"cognitoIdentityPoolId": null, | |
"cognitoIdentityId": null, | |
"cognitoAuthenticationProvider": null, | |
"sourceIp": "127.0.0.1", | |
"accountId": null | |
}, | |
"stage": "prod" | |
}, | |
"queryStringParameters": { | |
"foo": "bar" | |
}, | |
"headers": { | |
"Via": "1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)", | |
"Accept-Language": "en-US,en;q=0.8", | |
"CloudFront-Is-Desktop-Viewer": "true", | |
"CloudFront-Is-SmartTV-Viewer": "false", | |
"CloudFront-Is-Mobile-Viewer": "false", | |
"X-Forwarded-For": "127.0.0.1, 127.0.0.2", | |
"CloudFront-Viewer-Country": "US", | |
"Accept": "application/json", | |
"Upgrade-Insecure-Requests": "1", | |
"X-Forwarded-Port": "443", | |
"Host": "1234567890.execute-api.us-east-1.amazonaws.com", | |
"X-Forwarded-Proto": "https", | |
"X-Amz-Cf-Id": "cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==", | |
"CloudFront-Is-Tablet-Viewer": "false", | |
"Cache-Control": "max-age=0", | |
"User-Agent": "Custom User Agent String", | |
"CloudFront-Forwarded-Proto": "https", | |
"Accept-Encoding": "gzip, deflate, sdch", | |
"Content-Type": "application/json" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment