AshJsonApi.Resource.Routes.Get (ash_json_api v0.24.1) View Source

Link to this section Summary

Functions

A GET route to retrieve a single record

Link to this section Functions

Link to this macro

get(action, opts \\ [])

View Source (macro)

A GET route to retrieve a single record

Examples

get :default

Arguments

  • :action - The action to call when this route is hit

Options

  • :route - The path of the route The default value is "/:id".

  • :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 is false.