Normalixr v0.4.0 API Reference

Modules

This module offers basic support to normalize nested Ecto schemas, merging normalized results, and backfilling has_one and belongs_to-relations

Support for rendering normalized representations generated by Normalixr.normalize/2. You can render this template by calling render(conn, Normalixr.PhoenixView, "normalized.json", assigns)

This module must be used in every Ecto schema which is passed to Normalixr.normalize/2. After replacing use Ecto.Schema with use Normalixr.Schema, a new function is available in the module: underscored_name/0, which can be overridden and returns the name that is used in the normalized representation