Serialization has been moved to the JaSerializer library with the intent of improving the routing/resource DSL to provide more out of the box functionality.
- Super easy to create simple jsonapi.org compliant RESTful APIs.
- Standard Ecto models need little to no "wiring" to get working.
- Improved DSL for working with non Ecto models (eg: Mnesia, ETS, Riak, etc)
- Complete ability to override anything as needed.
- Attribute and relationship filtering/normalization
Have you thought about adding scopes? I like to scope routes using something like
default_scope
andscope
so you could have:Urls would come out like: "/api/v1/posts/:id/publish"