-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Description
Problem
extract_relationships
should be able to handle specialized cases, like allowing a links
or meta
object instead of a data
object. For example, in our application it needs to:
- recognize other field types as relationships
- return a
links
object instead of adata
object with type/id
The relationship data is read-only.
Desired
Potential solutions
@jerel suggested a serializer hook like add_relationships
for customization.
According to the spec, under relationships
you must include a links
, data
, or meta
object. http://jsonapi.org/format/#document-resource-object-relationships. The current extract_relationships
just allows for a data
object. It would be valuable for users to be able to have a links
object, instead.
Metadata
Metadata
Assignees
Labels
No labels