Lambda Proxy integration: Method Request params

Can I use Lambda Proxy integration and Serverless create the Method Request params: querystrings and headers (I will export them to swagger)

1 Like

what do you mean by “create”?

  1. add headers and query parameters to the request? no.
  2. access them? sure. event.headers and event.queryStringParameters (the complete Lambda proxy schema is: https://github.com/bbilger/jrestless/blob/master/aws/gateway/jrestless-aws-gateway-handler/README.md#request-schema)

I want something like this picture:

Got it.
Unfortunately I don’t know the answer to that, sorry.

Thanks anyway. I intend to use these parameters to export the Swagger documentation from API Gateway

if it’s just to document your endpoints, then maybe this plugin is interesting for you: https://github.com/andrewcurioso/raml-serverless (never tried it myself)
raml is not swagger, sure but I think there are converters out there
also the plugin isn’t doing exactly what you need but at least it allows you to add some description to your endpoints

@fsantana
Just saw this: https://github.com/serverless/serverless/issues/2990
So it seems to be a bug that you cannot set it right now.