URI Template
URI Templates are strings that contain embedded variables that are transformed into URIs after embedded variables are substituted. This specification defines the structure and syntax of URI Templates.
Contents
The latest version of the URI Template specification. Note that only the .txt version is normative.
draft-gregorio-uritemplate-03 [.html] [.xml] delta
Older Versions
draft-gregorio-uritemplate-02 [.html] [.xml] delta
draft-gregorio-uritemplate-01 [.html] [.xml] delta
draft-gregorio-uritemplate-00 [.html] [.xml]
Software
An experimental implementation in Python.
A URI Template Explainer service is also available. Just enter your URI Template below and the service will explain each part of the template and how it works.
Here are some examples:
- http://www.google.com/search?{-join|&|q,num}
- http://www.google.com/notebook/feeds/{userID}{-prefix|/notebooks/|notebookID}{-opt|/-/|categories}{-listjoin|/|categories}?{-join|&|updated-min,updated-max,alt,start-index,max-results,entryID,orderby}
- http://bitworking.org/news/{-listjoin|/|entrypath}
- http://example.com/search?q={searchTerms}&num={count}
And finally the URI Template for the URI Template Explainer service itself:
This file last modified 2008-03-28.