Glossary · Phase 8 · APIs
Path parameter
A placeholder in a URL pattern, like {id} in /campaigns/{id}, that captures part of the path.
A pattern can hold path parameters in braces, which work like blanks on a form.
/campaigns/{id}matches/campaigns/cmp_103and capturesid = "cmp_103".
Try it now
Everything else in web frameworks is built around this loop.
Learn it properly
Build an API server from scratch · Routing, handlers and responses, with no framework. About 40 minutes.
Other terms from the same lesson
- WSGI: Standard plugs between Python web servers and frameworks, so any server can run any app. ASGI is the async version.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.