jsonapi v1.2.3 JSONAPI.Paginator behaviour View Source

Pagination strategy behaviour

Link to this section Summary

Link to this section Types

Link to this type

links() View Source
links() :: %{
  first: String.t() | nil,
  last: String.t() | nil,
  next: String.t() | nil,
  prev: String.t() | nil
}

Link to this section Callbacks

Link to this callback

paginate(data, view, conn, page, options) View Source
paginate(
  data :: term(),
  view :: atom(),
  conn :: Plug.Conn.t(),
  page(),
  options()
) :: links()