Skip to content

Using parser functionalities jointly with APIGatewayRestResolver #2288

Closed Answered by leandrodamascena
gomboc1985 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gomboc1985, thanks for bringing this discussion on board. I'm going to split this answer into 3 parts for easier explanation.

1 - Documentation of APIGatewayProxyEventModel
Yes, I agree with you that we have room to improve our documentation and make it explicit that this template only works with v1.

2 - multiValueHeader and Headers fields
The APIGatewayProxyEventModel Model is intended to work with RestAPI and expects to receive an event from API Gateway. Even if you don't add any header on the client side (curl/postman/others) the API Gateway will inject headers automatically and pass them to Lambda since its using a PROXY integration. So, in this case, and according to AWS Document…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@gomboc1985
Comment options

@gomboc1985
Comment options

@leandrodamascena
Comment options

@heitorlessa
Comment options

Answer selected by heitorlessa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants