Warlock.Controller behaviour (warlock v0.1.2)
Link to this section Summary
Link to this section Callbacks
Specs
by_id(host :: String.t(), id :: String.t()) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Query.CastError.t()}
Specs
Specs
edit(String.t(), String.t(), params :: %{}) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Specs
get(host :: String.t(), params :: %{}) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Specs
new(host :: String.t(), params :: %{}) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}