I am trying to use AWS API Gateway to another service as follow:
https://jsonplaceholder.typicode.com/comments?postId=1&postId=2
I followed Map Request Parameters for an API Gateway API to create the get method.
So I have the following in method execution:
So as you can see I have a query param called id
.
In integration I have:
So I map the id
to postId
and when I try the link just with one queryparam
it works but when I try something like this:
url?id=1?postId=1&postId=2
How can I make the above scenario work with 2 query param?