Path Parameters
Explore how to use path parameters within AWS API Gateway to capture dynamic segments in URLs. Understand configuring method request and integration request settings to map these parameters to target APIs. This lesson shows how path parameters enable flexible routing and data mapping with practical examples using external HTTP APIs.
We'll cover the following...
What's a path parameter?
Consider the URL https://example.com/val1/val2. Here, val1 and val2 are parts of the URL path. We can configure the API Gateway to treat these values as parameters. It can use these values for routing or just any computation. Similar to query parameters, we need query parameter integration in two scenarios.
The URL invoking our API contains path parameters that should pass into the target API.
The URL of the target API requires some path parameters that come from the input URL.
API Gateway enables either of them. When ...