From Surf Wiki (app.surf) — the open knowledge base
URI Template
A URI Template is a way to specify a URI that includes parameters that must be substituted before the URI is resolved. It was standardized by RFC 6570 in March 2012.
The syntax is usually to enclose the parameter in Braces ({example}). The convention is for a parameter to not be Percent encoded unless it follows a Question Mark (?).
Examples
- http://example.com/people/{firstName}-{lastName}/SSN
- http://example.com/query{?firstName,lastName}
If we were building these URIs for Björk with firstName=Björk and lastName=Guðmundsdóttir they would be:
- http://example.com/people/Björk-Guðmundsdóttir/SSN
- http://example.com/query?firstName=Bj%c3%b6rk&lastName=Gu%c3%b0mundsd%c3%b3ttir
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about URI Template — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report