@@ -269,14 +269,27 @@ which **MUST** contain at least one of the following:
269
269
"relationship URL"). This URL allows the client to directly manipulate the
270
270
relationship. For example, it would allow a client to remove an ` author `
271
271
from an ` article ` without deleting the ` people ` resource itself.
272
- * A ` "related" ` member, whose value is a related resource URL, as defined above .
272
+ * A ` "related" ` member, whose value is a related resource URL, as defined below .
273
273
* A ` "data" ` member, whose value represents "resource linkage" (defined below).
274
274
* A ` "meta" ` member that contains non-standard meta-information about the
275
275
relationship.
276
276
277
277
A relationship object that represents a to-many relationship ** MAY** also contain
278
278
pagination links under the ` "links" ` member, as described below.
279
279
280
+ A "related resource URL" provides access to the resources targeted by the
281
+ relationship. When fetched, it returns the related resource object(s) as the
282
+ response's primary data. For example, an ` article ` 's ` comments ` relationship
283
+ could specify a URL that returns a list of comment resource objects when
284
+ retrieved through a ` GET ` request.
285
+
286
+ A related resource URL ** MUST** remain constant even when the relationship (the
287
+ set of referenced resources) mutates. That is, the response from a related
288
+ resource URL always reflects the current state of the relationship.
289
+
290
+ If present, a related resource URL ** MUST** be a valid URL, even if the
291
+ relationship isn't currently associated with any target resources.
292
+
280
293
Resource linkage ** MUST** be represented as one of the following:
281
294
282
295
* ` null ` for empty to-one relationships.
@@ -288,9 +301,6 @@ Resource linkage **MUST** be represented as one of the following:
288
301
together all of the included resource objects without having to ` GET ` any
289
302
relationship URLs.
290
303
291
- If present, a * related resource URL* ** MUST** be a valid URL, even if the
292
- relationship isn't currently associated with any target resources.
293
-
294
304
For example, the following article is associated with an ` author ` :
295
305
296
306
``` javascript
0 commit comments