File tree 2 files changed +10
-0
lines changed 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 a subset of the set of fields defined for the resource
1011
+ type; an empty set is acceptable.
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 @@ -1151,11 +1151,16 @@ response on a per-type basis by including a `fields[TYPE]` query parameter.
1151
1151
1152
1152
The value of any ` fields[TYPE] ` parameter ** MUST** be a comma-separated (U+002C
1153
1153
COMMA, ",") list that refers to the name(s) of the fields to be returned.
1154
+ An empty value indicates that no fields should be returned.
1154
1155
1155
1156
If a client requests a restricted set of [ fields] for a given resource type,
1156
1157
an endpoint ** MUST NOT** include additional [ fields] in resource objects of
1157
1158
that type in its response.
1158
1159
1160
+ If a client does not specify the set of [ fields] for a given resource type,
1161
+ the server ** MAY** send a subset of the set of fields defined for the resource
1162
+ type; an empty set is acceptable.
1163
+
1159
1164
``` http
1160
1165
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1
1161
1166
Accept: application/vnd.api+json
You can’t perform that action at this time.
0 commit comments