Skip to content

Commit 972ff17

Browse files
Apply suggestions from code review
Co-authored-by: Gabe Sullice <gabriel@sullice.com>
1 parent e75bb6f commit 972ff17

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

_format/1.0/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,7 @@ an endpoint **MUST NOT** include additional [fields] in resource objects of
10071007
that type in its response.
10081008

10091009
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.
1010+
the server **MAY** send all fields, a subset of fields, or no fields for that resource type.
10121011

10131012
```http
10141013
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1

_format/1.1/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,7 @@ an endpoint **MUST NOT** include additional [fields] in resource objects of
11581158
that type in its response.
11591159

11601160
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.
1161+
the server **MAY** send all fields, a subset of fields, or no fields for that resource type.
11631162

11641163
```http
11651164
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy