copper v0.1.0 Copper.Controller behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback

by_id(host, id)

by_id(host :: String.t(), id :: String.t()) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Query.CastError.t()}
Link to this callback

delete(host, id)

delete(host :: String.t(), id :: String.t()) ::
  {integer(), nil | Ecto.Query.CastError.t()}
Link to this callback

edit(arg1, arg2, params)

edit(String.t(), String.t(), params :: %{}) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

get(host, params)

get(host :: String.t(), params :: %{}) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

new(host, params)

new(host :: String.t(), params :: %{}) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}