ash_json_api v0.1.0 AshJsonApi.Controllers.Helpers View Source

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

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

TODO: Ash will need to have its own concept of errors, and this will need to convert those errors into API level errors.

Link to this section Summary

Link to this section Functions

Link to this function

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

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)

View Source
Link to this function

render_or_render_errors(request, conn, function)

View Source