-
Notifications
You must be signed in to change notification settings - Fork 886
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
state that the server may send a subset of fields by default #1500
Conversation
- the subset may be empty
- fields[type]= can be used to request no fields
- see Specification should state whether the "default" fields for a type is required to be complete #1499
- the subset may be empty - fields[type]= can be used to request no fields - see json-api#1499
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @freddrake! I suggested a slight change. WDYT?
@@ -1000,11 +1000,16 @@ response on a per-type basis by including a `fields[TYPE]` parameter. | |||
|
|||
The value of the `fields` parameter **MUST** be a comma-separated (U+002C | |||
COMMA, ",") list that refers to the name(s) of the fields to be returned. | |||
An empty value indicates that no fields should be returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Gabe Sullice <gabriel@sullice.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @freddrake!
@dgeb, I'll let you merge this as a final +1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good clarification. Thanks @freddrake!
Excellent clarification. Thanks! |