jsonapi v0.9.0 JSONAPI.Serializer View Source
Serialize a map of data into a properly formatted JSON API response object
Link to this section Summary
Functions
Takes a view, data and a optional plug connection and returns a fully JSONAPI Serialized document. This assumes you are using the JSONAPI.View and have data in maps or structs
Link to this section Functions
Link to this function
build_relationships(conn, arg1, arg2, acc) View Source
Link to this function
data_loaded?(rel_data) View Source
Link to this function
encode_data(view, data, conn, query_includes) View Source
Link to this function
encode_rel_data(view, data) View Source
Link to this function
encode_relation(info) View Source
Link to this function
encode_relationships(conn, doc, view_info) View Source
Link to this function
flatten_included(included) View Source
Link to this function
get_view(view) View Source
Link to this function
serialize(view, data, conn \\ nil, meta \\ nil) View Source
Takes a view, data and a optional plug connection and returns a fully JSONAPI Serialized document. This assumes you are using the JSONAPI.View and have data in maps or structs.
Please refer to JSONAPI.View
for more information. If you are in interested in relationships
and includes you may also want to reference the JSONAPI.QueryParser
.