Uri Template

From Handwiki

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örk&lastName=Guðmundsdóttir

See also

  • European Legislation Identifier (URI template is used by ELI)

External links

  • RFC6570 - URI Template at the IETF
  • List of RFC6570 Implementations



Retrieved from "https://handwiki.org/wiki/index.php?title=URI_Template&oldid=128195"

Categories: [Internet Standards] [URL]


Download as ZWI file | Last modified: 07/14/2024 03:21:27 | 8 views
☰ Source: https://handwiki.org/wiki/URI_Template | License: CC BY-SA 3.0

ZWI is not signed. [what is this?]