relax v0.3.0

Modules summary

Relax
Relax.NotFound

A plug that halts plug stack processing and returns 404 with reason

Relax.Resource

Provides functionality and defines a behaviour to help build jsonapi.org resource endpoints

Relax.Resource.Create

Include in your resource to respond to POST /

Relax.Resource.Delete

Include in your resource to respond to DELETE /:id

Relax.Resource.FetchAll

Include in your resource to respond to GET / and GET /?filter[foo]=bar

Relax.Resource.FetchOne

Include in your resource to respond to GET /:id

Relax.Resource.Fetchable

A behaviour for fetching models

Relax.Resource.Nested

Converts nested resources from Relax.Routers to JSON API style filters

Relax.Resource.PermittedParams
Relax.Resource.Update

Include in your resource to respond to PUT /:id and PATCH /:id

Relax.Responders

Convienience methods for generating JSONAPI.org spec Plug.Conn responses

Relax.Router

A DSL for defining a routing structure to determine what resources handle which requests