Search code examples
amazon-web-servicesaws-api-gateway

How to map URL parts to parameters in AWS API gateway?


Is it possible to map URL parameters according to the following pseudocode template in AWS API gateway?

/mysite/data/results/{id}/image/{filename}

I don't see appropriate fields on web form:

enter image description here

URL query string parameters are probably for things after ?


It doesn't accept curly braces freely in resources section too:

enter image description here


Solution

  • In the API gateway. When adding Resources, you need to specify the path variables (Path parameters) while defining the Resources and mapping the url.

    enter image description here

    As you can see, it also supports Path variables and Proxy variable.