March 2019
Intermediate to advanced
168 pages
4h 33m
English
Here is a full example API Gateway request, serverless-microservice-data-api/sample_data/request-api-gateway-valid-date.json, that a proxy Lambda function would receive as an event. These can be generated by printing the real API Gateway JSON event, which the Lambda gets as an event source into CloudWatch logs:
{ "body": "{\"test\":\"body\"}", "resource": "/{proxy+}", "requestContext": { "resourceId": "123456", "apiId": "1234567890", "resourcePath": "/{proxy+}", "httpMethod": "GET", "requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", "accountId": "123456789012", "identity": { "apiKey": null, "userArn": null, "cognitoAuthenticationType": null, "caller": null, "userAgent": "Custom User Agent String", "user": null, ...Read now
Unlock full access