-
Notifications
You must be signed in to change notification settings - Fork 424
Open
Description
This is re-opening #252, because AFAIK fast_jsonapi does not support this in the current version.
In our scenario it is a bit costly to fetch the ids of related resources. So not returning "data" for specific relations by default, but just "links" would great. The goal is to return something like this:
"attributes": {
...
},
"relationships": {
"comments": {
"links": {
"related": "http://localhost/api/v1/users/1/comments"
}
},
Returning a link (URL) to the related records is possible with fast_jsonapi, but excluding "data" is AFAIK not suppordet and not possible via with sparse fieldsets as mentioned in #252.
jsonapi-serializers does this via has_many :comments, include_data: true (false by default).
aaackerman, phlegx, dillonwelch, danhunter, sumeetattree and 3 more
Metadata
Metadata
Assignees
Labels
No labels