Lettermint.Types.ListRoutesQuery (Lettermint v2.0.0)

Copy Markdown View Source

Query parameters of GET /projects/{projectId}/routes (listRoutes).

Pass them as a map with nested maps for bracketed names: %{page: %{size: 10}} is sent as page[size]=10. Lists of values are joined with commas, lists of maps are indexed and booleans are sent as 1 or 0.

Parameters

  • page[size] (optional): The number of results that will be returned per page.
  • page[cursor] (optional): The cursor to start the pagination from.
  • sort (optional)
  • filter[route_type] (optional)
  • filter[is_default] (optional)
  • filter[search] (optional): Search by name or slug

Summary

Functions

The wire names of the parameters with their decode specs.

Types

t()

@type t() :: %{
  optional(:sort) => [Lettermint.Types.ListRoutesQuerySortItem.t()],
  optional(:page) => %{
    optional(:size) => integer(),
    optional(:cursor) => String.t()
  },
  optional(:filter) => %{
    optional(:route_type) => Lettermint.Types.RouteType.t(),
    optional(:is_default) => boolean(),
    optional(:search) => String.t()
  }
}

Functions

__params__()

The wire names of the parameters with their decode specs.