Restlax (Restlax v0.1.0) View Source
Relax, it's just REST.
Built on top of Tesla and allows you and the users your API client to pick the HTTP client.
Features
- quick generation of regular REST actions
- helpers to aid writing custom actions
- freedom of choosing your preferred HTTP client
Maybe in the future
- request validation hook
- response conversion hook
Installation
If available in Hex, the package can be installed
by adding restlax
to your list of dependencies in mix.exs
:
def deps do
[
{:restlax, "~> 0.1.0"}
]
end
Usage
See Restlax.Client
and Restlax.Resource
for more information
The docs can be found at https://hexdocs.pm/restlax.
An example project using Restlax
: Cloudflare