Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AWS HTTP API): configure payload format version #7623

Merged
merged 1 commit into from Apr 24, 2020

Conversation

egirshov
Copy link
Contributor

@egirshov egirshov commented Apr 24, 2020

HTTP API / Lambda integration supports two event/payload formats, 1.0 is compatible with REST API / Proxy Lambda integration, but 2.0 has new 'cookies' property and overall structure is a bit cleaned up.

Closes #7477

How can we verify it

Added a global (provider level) configuration option and a test case:

provider:
 httpApi:
   payload: '2.0'

Todos

  • Write and run all tests
  • Write documentation
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @egirshov looks great!

@medikoo medikoo merged commit 4c2a52d into serverless:master Apr 24, 2020
@egirshov
Copy link
Contributor Author

Oh, I didn't realize there was an issue opened, only checked branches/open pull requests

dvalovage-sentinel added a commit to dvalovage-sentinel/aws-demo that referenced this pull request Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting payloadFormatVersion = 2.0 for AWS API Gateway (v2/httpApi) lambda functions
2 participants