Skip to content
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

Specify which attributes to include #80

Open
jonblack opened this issue Jul 14, 2016 · 1 comment
Open

Specify which attributes to include #80

jonblack opened this issue Jul 14, 2016 · 1 comment

Comments

@jonblack
Copy link

In some circumstances I don't want to include all attributes. For example, when getting a list of users I don't want to include auth_token, but when logging in, the auth_token is required. Is this possible?

@ababich
Copy link

ababich commented Oct 22, 2016

You need to follow JSONAPI specs
http://jsonapi.org/format/#fetching-sparse-fieldsets

Spec means that you always return the widest available/defined fieldset, and client MAY shrink list of required fields, but DOES NOT HAVE TO specify them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants