File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,12 @@ relationship URLs.
297
297
If present, a * related resource URL* ** MUST** be a valid URL, even if the
298
298
relationship isn't currently associated with any target resources.
299
299
300
+ > Note: The spec does not impart meaning to order of resource identifier
301
+ objects in linkage arrays of to-many relationships, although implementations
302
+ may do that. Arrays of resource identifier objects may represent ordered
303
+ or unordered relationships, and both types can be mixed in one response
304
+ object.
305
+
300
306
For example, the following article is associated with an ` author ` :
301
307
302
308
``` javascript
@@ -1453,8 +1459,8 @@ Accept: application/vnd.api+json
1453
1459
1454
1460
If a client makes a ` POST ` request to a * relationship URL* , the server
1455
1461
** MUST** append the specified members to the relationship using set
1456
- semantics. This means that if a given ` type ` and ` id ` is already in the
1457
- relationship, the server ** MUST NOT** add it again.
1462
+ semantics (ordered or unordered) . This means that if a given ` type ` and
1463
+ ` id ` is already in the relationship, the server ** MUST NOT** add it again.
1458
1464
1459
1465
> Note: This matches the semantics of databases that use foreign keys for
1460
1466
has-many relationships. Document-based storage should check the has-many
You can’t perform that action at this time.
0 commit comments