Contentful SDK v0.3.2 Contentful.Queryable behaviour View Source

Behaviour for allowing another module to be processed by the functions of Contentful.Query.

See also:

Link to this section Summary

Link to this section Callbacks

Specs

endpoint() :: String.t()
Link to this callback

resolve_collection_response(%{})

View Source

Specs

resolve_collection_response(%{
  required([{:total, String.t()}]) => non_neg_integer(),
  required([{:items, String.t()}]) => [...]
}) :: {:ok, [struct()], [{:total, non_neg_integer()}]}
Link to this callback

resolve_entity_response(map)

View Source

Specs

resolve_entity_response(map()) :: {:ok, struct()}