Packages

An HTTP client for Voodoo Manufacturing

Current section

Files

Jump to
voodoo_mfg lib voodoo material.ex
Raw

lib/voodoo/material.ex

defmodule Voodoo.Material do
@moduledoc """
Get list of available materials
"""
@endpoint "/materials"
@doc """
Get list of materials from Voodoo
## Examples
```elixir
{:ok, result} = Voodoo.Material.list
```
"""
def list do
Voodoo.make_request(:get, @endpoint)
|> Voodoo.Util.handle_voodoo_response
end
end