Skip to content

Passing params? (GET/POST, querystring, anything!) #469

@Jonovono

Description

@Jonovono

Hi. Exploring this library right now.

Something that I am still puzzled about is working with params / querystrings.

I've figured out I need to do something like this:

          "requestParameters": {"integration.request.querystring.foo": "method.request.querystring.foo"},
      "requestTemplates": {
      "application/json": {"foo": "$input.params('foo')"}
      },

Is this correct? But how do I then access this?

module.exports.handler = function(event, context) {
console.log("hello")
console.log(event)

Also how would this be defined for post params and what not?

If there is a good demo somewhere that would work too! Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions