|
6 | 6 | <!ENTITY rfc3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
|
7 | 7 | <!--<!ENTITY rfc4287 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4287.xml">-->
|
8 | 8 | <!--<!ENTITY rfc5226 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5226.xml">-->
|
| 9 | +<!ENTITY rfc5789 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5789.xml"> |
9 | 10 | <!ENTITY rfc5988 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5988.xml">
|
10 | 11 | <!ENTITY rfc6570 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6570.xml">
|
11 | 12 | <!ENTITY rfc7231 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.7231.xml">
|
@@ -703,9 +704,26 @@ GET /foo/
|
703 | 704 |
|
704 | 705 | <section title="targetSchema">
|
705 | 706 | <t>
|
706 |
| - This property provides a schema that is expected to describe the link target, including what a client can expect if it makes an HTTP GET request, and what it should send if it replaces the resource in an HTTP PUT request. The request structure for HTTP PATCH is described by the combination of this schema and the media type of the PATCH request payload. This property is advisory only. |
| 707 | + This property provides a schema that is expected to describe |
| 708 | + the link target's representation. Depending on the protocol, |
| 709 | + the schema may or may not describe the response to any particular |
| 710 | + request sent to the link. This property is advisory only. |
707 | 711 | </t>
|
708 |
| - |
| 712 | + <section title=""targetSchema" and HTTP"> |
| 713 | + <t> |
| 714 | + The relationship between a resource's representation and |
| 715 | + HTTP requests and responses is determined by |
| 716 | + <xref target="RFC7231">RFC 7231, section 4.3.1 - "GET", section 4.3.4 "PUT", and section 3.1.4.2, "Content-Location"</xref>. |
| 717 | + In particular, "targetSchema" suggests what a client can expect |
| 718 | + for the response to an HTTP GET or any response for which |
| 719 | + the "Content-Location" header is equal to the request URI, |
| 720 | + and what a client should send if it replaces the resource |
| 721 | + in an HTTP PUT request. |
| 722 | + Per <xref target="RFC5789">RFC 5789</xref>, the request structure |
| 723 | + for an HTTP PATCH is determined by the combination of "targetSchema" |
| 724 | + and the request media type. |
| 725 | + </t> |
| 726 | + </section> |
709 | 727 | <section title="Security Considerations for "targetSchema"">
|
710 | 728 | <t>
|
711 | 729 | This property has similar security concerns to that of "mediaType".
|
@@ -950,6 +968,7 @@ GET /foo/
|
950 | 968 | <references title="Informative References">
|
951 | 969 | &rfc2046;
|
952 | 970 | <!--&rfc5226;-->
|
| 971 | + &rfc5789; |
953 | 972 | &rfc5988;
|
954 | 973 | &rfc7231;
|
955 | 974 | &html5;
|
|
0 commit comments