I just started playing around a bit with Serverless 1.0 but I can’t find how to define a query string parameter for an API Gateway endpoint.
I tried the “0.5” way of adding {myParameter} in the path, but it seems like this is not translated to anything and is just part of the path.
yeah sorry, my bad. For some reason I was expecting it to show up as a query string parameter, which is of course a totally different thing (to my defense, it was very late ). All good.
With that said though, how would I declare query string parameters from the serverless config?
You don’t need to define the Query parameters in serverless config at all. If you add query parameters to the request they should show up in the event data