Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/princemaple/restlax
Relax, it's just REST. Elixir REST API client builder.
https://github.com/princemaple/restlax
api builder client elixir rest
Last synced: about 1 month ago
JSON representation
Relax, it's just REST. Elixir REST API client builder.
- Host: GitHub
- URL: https://github.com/princemaple/restlax
- Owner: princemaple
- License: mit
- Created: 2021-02-09T06:43:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T19:37:12.000Z (over 1 year ago)
- Last Synced: 2024-09-19T00:28:56.374Z (about 2 months ago)
- Topics: api, builder, client, elixir, rest
- Language: Elixir
- Homepage: https://hex.pm/packages/restlax
- Size: 54.7 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Restlax
[![hex.pm](https://img.shields.io/hexpm/v/restlax.svg)](https://hex.pm/packages/restlax)
[![hex.pm](https://img.shields.io/hexpm/l/restlax.svg)](https://hex.pm/packages/restlax)
[![github.com](https://img.shields.io/github/last-commit/princemaple/restlax.svg)](https://github.com/princemaple/restlax)> Relax, it's just REST.
Built on top of [Tesla](https://github.com/teamon/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](https://hex.pm/docs/publish), the package can be installed
by adding `restlax` to your list of dependencies in `mix.exs`:```elixir
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](https://hexdocs.pm/restlax).
An example project using `Restlax`: [`Cloudflare`](https://hexdocs.pm/cloudflare)