path parameter

A value embedded in the path of a URL, such as 42 in /users/42, which a router extracts by matching a pattern.

In more detail

Path parameters usually identify a resource, while query parameters filter or modify the request. Frameworks usually write them as :id in a route pattern, as in /users/:id.

Related terms

Taught in

References