pagantis_elixir_tools v0.21.3 ElixirTools.HttpClient.Request behaviour
A Request
prepares and does the call to an external provider.
Link to this section Summary
Callbacks
Execute an action on a resource
Link to this section Types
Link to this type
params()
Specs
params() :: map()
The parameters to build the request.
Link to this type
request_opt()
Specs
request_opt() :: []
Link to this type
request_return()
Specs
request_return() :: {:ok, atom() | json()} | {:error, json()}
The return for every request.
Link to this section Callbacks
Specs
create(params(), request_opt()) :: request_return()
Execute an action on a resource
Specs
delete(params(), request_opt()) :: request_return()
Specs
get(params(), request_opt()) :: request_return()
Specs
update(params(), request_opt()) :: request_return()