Dayron v0.1.1 API Reference
Modules
Dayron is split into 2 main components
Behaviour for creating Dayron Adapters
Helper module wrapping Logger calls to register request/response events
Helpers to handle application configuration values
Makes http requests using HTTPoison library. Use this adapter to make http requests to an external Rest API
A HTTPoison.Base Client implementation, sending json requests, parsing json responses to Maps or a List of Maps. Maps keys are also converted to atoms by default
Behaviour for creating Dayron Loggers
Defines the functions to convert a module into a Dayron Model
Defines a rest repository
Defines a struct to store data necessary to send a request using an adapter. Also provides helper functions to map request data to adapter method calls
Defines a struct to store the response data returned by an api request
Exceptions
Raised at runtime when the request connection fails
Raised at runtime when the request does not return any result
Raised at runtime when the request returns an error
Raised at runtime when the response is a 422 unprocessable entity