Skip to content

Instantly share code, notes, and snippets.

@metaskills

metaskills/event-data.md

Last active Mar 26, 2020
Embed
What would you like to do?
Query Strings Event Values w/Lambda Integration using API Gateway (REST & HTTP API) & Application Load Balancers

This solely tests array query string values since I find these the most interesting edge case. So the query string would be colors[]=blue&colors[]=red for all cases below.

API Gateway HTTP API (version 2.0)

"rawQueryString": "colors[]=blue&colors[]=red",
"queryStringParameters": { "colors[]": "blue,red" }

API Gateway HTTP API (version 1.0)

"queryStringParameters": { "colors[]": "red" },
"multiValueQueryStringParameters": { "colors[]": [ "blue", "red" ] }

Application Load Balancer

"multiValueQueryStringParameters": { "colors[]": [ "blue", "red" ] }

API Gateway REST API

"queryStringParameters": { "colors[]": "red" },
"multiValueQueryStringParameters": { "colors[]": [ "blue", "red" ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.