ash_json_api v0.4.0 AshJsonApi.Resource.Routes.Relationship View Source
Link to this section Summary
Functions
A READ route to read the relationship, returns resource identifiers.
Link to this section Functions
A READ route to read the relationship, returns resource identifiers.
Examples
relationship :comments, :default
Arguments
:relationship
:action
- The action to call when this route is hit
Options
:route
- false The path of the route - Defaults to /:id/relationships/[relationship_name]:primary?
- Whether or not this is the route that should be linked to by default when rendering links to this type of route The default value isfalse
.