View Source JSONAPI.ErrorView (jsonapi v1.8.3)

Summary

Types

@type error_attrs() :: map()

Functions

Link to this function

build_error(title, status, detail, pointer \\ nil, meta \\ nil)

View Source
Link to this function

incorrect_content_type()

View Source
@spec incorrect_content_type() :: map()
@spec malformed_id() :: map()
@spec mismatched_id() :: map()
Link to this function

missing_data_attributes_param()

View Source
@spec missing_data_attributes_param() :: map()
@spec missing_data_id_param() :: map()
@spec missing_data_param() :: map()
Link to this function

missing_data_type_param()

View Source
@spec missing_data_type_param() :: map()
@spec missing_id() :: map()
Link to this function

missing_relationship_data_id_param_error_attrs(relationship_name)

View Source
@spec missing_relationship_data_id_param_error_attrs(binary()) :: error_attrs()
Link to this function

missing_relationship_data_param_error_attrs(relationship_name)

View Source
@spec missing_relationship_data_param_error_attrs(binary()) :: error_attrs()
Link to this function

missing_relationship_data_type_param_error_attrs(relationship_name)

View Source
@spec missing_relationship_data_type_param_error_attrs(binary()) :: error_attrs()
Link to this function

relationships_missing_object()

View Source
@spec relationships_missing_object() :: map()
@spec send_error(Plug.Conn.t(), term()) :: term()
Link to this function

send_error(conn, status, error \\ "")

View Source
@spec serialize_error(error_attrs()) :: map()
Link to this function

serialize_errors(errors)

View Source
@spec serialize_errors(list()) :: map()
Link to this function

to_many_relationships_payload_for_standard_endpoint()

View Source
@spec to_many_relationships_payload_for_standard_endpoint() :: map()