An Elixir HTTP client wrapper that provides structured response handling and schema parsing support. Built on top of the Req HTTP client, Tama simplifies API interactions by offering consistent error handling and automatic data parsing using Ecto-style schemas.
- Simple HTTP client creation with base URL configuration
- Structured response handling with consistent error patterns
- Support for schema-based data parsing
- Built-in error handling for common HTTP status codes (404, 422, 4xx, 5xx)
- Support for both 200 and 201 success responses
The package can be installed by adding tama to your list of dependencies in mix.exs:
def deps do
[
{:tama_ex, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/tama_ex.