jsonapi v0.3.0 JSONAPI.Serializer

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

Functions

encode_data(view, data, conn, query_includes)
encode_rel_data(view, data)
encode_relation(rel_view, rel_data, rel_url, conn)
flatten_included(included)
get_view(view)
is_data_loaded?(rel_data)
serialize(view, data, conn \\ nil)

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.