URI Template
RFC 6570
Document | Type |
RFC - Proposed Standard
(March 2012; No errata)
Was draft-gregorio-uritemplate (individual in app area)
|
|
---|---|---|---|
Authors | Roy Fielding , Mark Nottingham , David Orchard , Joe Gregorio , Marc Hadley | ||
Last updated | 2020-07-29 | ||
Stream | IETF | ||
Formats | plain text html pdf htmlized bibtex | ||
Reviews | |||
Stream | WG state | (None) | |
Document shepherd | No shepherd assigned | ||
IESG | IESG state | RFC 6570 (Proposed Standard) | |
Consensus Boilerplate | Unknown | ||
Telechat date | |||
Responsible AD | Peter Saint-Andre | ||
IESG note | Murray Kucherawy <msk@cloudmark.com> is the Document Shepherd. | ||
Send notices to | msk@cloudmark.com |
Internet Engineering Task Force (IETF) J. Gregorio Request for Comments: 6570 Google Category: Standards Track R. Fielding ISSN: 2070-1721 Adobe M. Hadley MITRE M. Nottingham Rackspace D. Orchard Salesforce.com March 2012 URI Template Abstract A URI Template is a compact sequence of characters for describing a range of Uniform Resource Identifiers through variable expansion. This specification defines the URI Template syntax and the process for expanding a URI Template into a URI reference, along with guidelines for the use of URI Templates on the Internet. Status of This Memo This is an Internet Standards Track document. This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 5741. Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc6570. Copyright Notice Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must Gregorio, et al. Standards Track [Page 1] RFC 6570 URI Template March 2012 include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction ....................................................3 1.1. Overview ...................................................3 1.2. Levels and Expression Types ................................5 1.3. Design Considerations ......................................9 1.4. Limitations ...............................................10 1.5. Notational Conventions ....................................11 1.6. Character Encoding and Unicode Normalization ..............12 2. Syntax .........................................................13 2.1. Literals ..................................................13 2.2. Expressions ...............................................13 2.3. Variables .................................................14 2.4. Value Modifiers ...........................................15 2.4.1. Prefix Values ......................................15 2.4.2. Composite Values ...................................16 3. Expansion ......................................................18 3.1. Literal Expansion .........................................18 3.2. Expression Expansion ......................................18 3.2.1. Variable Expansion .................................19 3.2.2. Simple String Expansion: {var} .....................21 3.2.3. Reserved Expansion: {+var} .........................22 3.2.4. Fragment Expansion: {#var} .........................23 3.2.5. Label Expansion with Dot-Prefix: {.var} ............24 3.2.6. Path Segment Expansion: {/var} .....................24 3.2.7. Path-Style Parameter Expansion: {;var} .............25 3.2.8. Form-Style Query Expansion: {?var} .................26 3.2.9. Form-Style Query Continuation: {&var} ..............27 4. Security Considerations ........................................27 5. Acknowledgments ................................................28 6. References .....................................................28 6.1. Normative References ......................................28 6.2. Informative References ....................................29 Appendix A. Implementation Hints ..................................30 Gregorio, et al. Standards Track [Page 2]Show full document text