ja_resource v0.3.1 API Reference
Modules
When used, includes all restful actions behaviours. Also a plug
Provides the permitted_attributes/3
callback used for filtering attributes
Defines a behaviour for creating a resource and the function to execute it
Defines a behaviour for deleting a resource and the function to execute it
Provides handle_index/2
, filter/4
and sort/4
callbacks
Provides the model/0
callback used to customize the resource served
Implements a plug that dispatches Phoenix actions to JaResource action behaviours
This behaviour is used by the following JaResource actions
Provides the records/1
callback used for querying records to be served
The JaResource.Serializable
behavior is used to send serialization options
such as fields
and include
to the serializer
Defines a behaviour for displaying a resource and the function to execute it
Defines a behaviour for updating a resource and the function to execute it