URI Template

Uses your system voice; voice and rate in settings.

Snapshot

≈ 1 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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 (?).

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

See also

European Legislation Identifier (URI template is used by ELI)

External links

RFC6570 - URI Template at the IETF List of RFC6570 Implementations

Text derived from https://en.wikipedia.org/w/index.php?oldid=1064123306 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001064123306 · captured 1641488452.0 · version history

Cite this page as: encyclopegia.org, “URI Template”, snapshot enwiki-001064123306. https://encyclopegia.org/a/uri-template

Sources cited in this revision

No external citation was extracted for this revision. That is a statement about the source, not a claim that none exists.