10000 state that the server may send a subset of fields by default by freddrake · Pull Request #1500 · json-api/json-api · GitHub
[go: up one dir, main page]

Skip to content

state that the server may send a subset of fields by default #1500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix line wrapping.
  • Loading branch information
gabesullice committed Aug 7, 2020
commit 2d9a68123c2d7cd2a228a7d6118239f6928fd078
3 changes: 2 additions & 1 deletion _format/1.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,8 @@ an endpoint **MUST NOT** include additional [fields] in resource objects of
that type in its response.

If a client does not specify the set of [fields] for a given resource type,
the server **MAY** send all fields, a subset of fields, or no fields for that resource type.
the server **MAY** send all fields, a subset of fields, or no fields for that
resource type.

```http
GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1
Expand Down
5 changes: 3 additions & 2 deletions _format/1.1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,9 @@ If a client requests a restricted set of [fields] for a given resource type,
an endpoint **MUST NOT** include additional [fields] in resource objects of
that type in its response.

If a client does not specify the set of [fields] for a given resource type,
the server **MAY** send all fields, a subset of fields, or no fields for that resource type.
If a client does not specify the set of [fields] for a given resource type, the
server **MAY** send all fields, a subset of fields, or no fields for that
resource type.

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