ash_json_api v0.1.4 AshJsonApi.Controllers.Helpers View Source

Tools for control flow around a request, and common controller utilities.

While we haven't focused on supporting it yet, this will eventually be a set of tools that can be used to build custom controller actions, without having to write everything yourself.

chain/2 lets us pipe cleanly, only doing stateful things if no errors have been generated yet.

Link to this section Summary

Link to this section Functions

Link to this function

add_to_relationship(request, relationship_name)

View Source
Link to this function

chain(request, func, opts \\ [])

View Source
Link to this function

delete_from_relationship(request, relationship_name)

View Source
Link to this function

fetch_id_path_param(request)

View Source
Link to this function

fetch_pagination_parameters(request)

View Source
Link to this function

fetch_record_from_path(request, through_resource \\ nil)

View Source
Link to this function

fetch_related(request, paginate? \\ true)

View Source
Link to this function

render_or_render_errors(request, conn, function)

View Source
Link to this function

replace_relationship(request, relationship_name)

View Source