ash_json_api v0.5.0 AshJsonApi.Resource.Routes.Index View Source

Link to this section Summary

Functions

A GET route to retrieve a list of records

Link to this section Functions

Link to this macro

index(action, opts \\ [])

View Source (macro)

A GET route to retrieve a list of records

Examples

index :default

Arguments

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

Options

  • :paginate? - The default value is true.

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

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