-
Notifications
You must be signed in to change notification settings - Fork 109
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
Is there support for field selection parameters? #193
Comments
The The |
First, I really appreciate this project. It's a must have for every laravel devs who try to create and maintain standardized Json API. |
Yes the implementation complies with the spec: Those docs give this example: GET /articles?include=author&fields[articles]=title,body&fields[people]=name HTTP/1.1
Accept: application/vnd.api+json In that the So yes, you can ask for the fields of the primary resource that is being requested plus the included resources. |
Thank you very much ! This is awesome ! |
Hi! I believe that you should consider updating this part of docs, because |
I would like to know (as it does not seem to work) if it's possible to do get a specific field on a relationship link. For example:
|
@lilouch I remember something like using a dot for that. If you have a relationship |
@lilouch it's because you're only requesting the GET http://127.0.0.1:8000/api/v1/assets/27/relationships/histories HTTP/1.1
Accept: application/vnd.api+json The fields will work on the endpoint that you're using ( |
I'm researching API packages for Laravel and was wondering if the missing doc page called "sparse fieldsets" is related to the
?fields
parameter specified on the JSON-API, that allows a request to only receive a number of specified fields on the response.On the same topic, is sorting supported or a planned feature?
Bottom-line: what's "to be done", the docs or the feature itself? :)
The text was updated successfully, but these errors were encountered: