@@ -1251,7 +1251,9 @@ for varname in templateData:
1251
1251
</t >
1252
1252
<t >
1253
1253
All information necessary to use each HTTP method can be conveyed in a
1254
- single LDO as explained in this appendix.
1254
+ single LDO as explained in this section. The "allow" field in "targetHints"
1255
+ is intended simply to hint at which operations are supported, not to
1256
+ separately define each operation.
1255
1257
</t >
1256
1258
<t >
1257
1259
Note, however, that a resource may always decline an operation at runtime,
@@ -1264,23 +1266,27 @@ for varname in templateData:
1264
1266
The relationship between a resource's representation and HTTP requests and
1265
1267
responses is determined by <xref target =" RFC7231" >RFC 7231, section 4.3.1 -
1266
1268
"GET", section 4.3.4 "PUT", and section 3.1.4.2, "Content-Location"</xref >.
1267
- In particular, "targetSchema" suggests what a
1268
- client can expect for the response to an HTTP GET or any response for which
1269
- the "Content-Location" header is equal to the request URI, and what a client
1270
- should send if it replaces the resource in an HTTP PUT request.
1269
+ In particular, "targetSchema" suggests what a client can expect for the
1270
+ response to an HTTP GET or any response for which the "Content-Location"
1271
+ header is equal to the request URI, and what a client should send if it
1272
+ replaces the resource in an HTTP PUT request.
1271
1273
</t >
1272
1274
<t >
1273
1275
The media type of the representation is given by the "targetMediaType"
1274
1276
field. Alternatively, possible available media types MAY be advertised
1275
- using an entry for the "Accept" request header field in "headerSchema".
1277
+ for HTTP-accessible resources using the "accept" field in "headerSchema",
1278
+ corresponding to the HTTP "Accept" header.
1276
1279
</t >
1277
1280
<t >
1278
1281
Per <xref target =" RFC5789" >RFC 5789</xref >, the request structure for an HTTP
1279
1282
PATCH is determined by the combination of "targetSchema" and the request
1280
- media type, which is conveyed by the "Accept-Patch" header.
1283
+ media type, which is conveyed by the "Accept-Patch" header. Media types
1284
+ that are suitable for PATCH-ing define a syntax for expressing changes
1285
+ to a document, which can be applied to the representation described by
1286
+ "targetSchema" to determine the set of syntactically valid request payloads.
1281
1287
</t >
1282
1288
<t >
1283
- HTTP POST requests are determined by the "submissionSchema" and
1289
+ HTTP POST request payloads are described by the "submissionSchema" and
1284
1290
"submissionMediaType" fields. Additionally, the "Accept-Post" header
1285
1291
can be used to specify the necessary media type, and MAY be
1286
1292
advertised via the "targetHints" field.
@@ -1350,7 +1356,9 @@ for varname in templateData:
1350
1356
<t >
1351
1357
When using HTTP, or a protocol such as CoAP that is explicitly analogous
1352
1358
to HTTP, this is done by POST-ing a representation of the individual
1353
- resource to be created to the collection resource.
1359
+ resource to be created to the collection resource. The process for
1360
+ recognizing collection and item resources is described in
1361
+ <xref target =" collectionAndItem" />.
1354
1362
</t >
1355
1363
</section >
1356
1364
</section >
0 commit comments