File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1000,11 +1000,16 @@ response on a per-type basis by including a `fields[TYPE]` parameter.
1000
1000
1001
1001
The value of the ` fields ` parameter ** MUST** be a comma-separated (U+002C
1002
1002
COMMA, ",") list that refers to the name(s) of the fields to be returned.
1003
+ An empty value indicates that no fields should be returned.
1003
1004
1004
1005
If a client requests a restricted set of [ fields] for a given resource type,
1005
1006
an endpoint ** MUST NOT** include additional [ fields] in resource objects of
1006
1007
that type in its response.
1007
1008
1009
+ If a client does not specify the set of [ fields] for a given resource type,
1010
+ the server ** MAY** send all fields, a subset of fields, or no fields for that
1011
+ resource type.
1012
+
1008
1013
``` http
1009
1014
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1
1010
1015
Accept: application/vnd.api+json
Original file line number Diff line number Diff line change @@ -1322,11 +1322,16 @@ response on a per-type basis by including a `fields[TYPE]` query parameter.
1322
1322
1323
1323
The value of any ` fields[TYPE] ` parameter ** MUST** be a comma-separated (U+002C
1324
1324
COMMA, ",") list that refers to the name(s) of the fields to be returned.
1325
+ An empty value indicates that no fields should be returned.
1325
1326
1326
1327
If a client requests a restricted set of [ fields] for a given resource type,
1327
1328
an endpoint ** MUST NOT** include additional [ fields] in resource objects of
1328
1329
that type in its response.
1329
1330
1331
+ If a client does not specify the set of [ fields] for a given resource type, the
1332
+ server ** MAY** send all fields, a subset of fields, or no fields for that
1333
+ resource type.
1334
+
1330
1335
``` http
1331
1336
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1
1332
1337
Accept: application/vnd.api+json
You can’t perform that action at this time.
0 commit comments