Skip to content

Support for sorting parameters #7

@peterhartman

Description

@peterhartman

Is your feature request related to a problem? Please describe.
The only sorting supported by this wrapper currently is :runtime_sort? which may be inefficient if the sorting is supported by the API.

Describe the solution you'd like
The ability to define and use sort_with and order_with properties in the endpoint definition

Describe alternatives you've considered
Currently I am using :runtime_sort?

Express the feature either with a change to resource syntax, or with a change to the resource interface

endpoint :list_users do
  path("/users")
  limit_with {:param, "limit"}
  sort_with {:param, "sortBy"}
  order_with {:param, "order"}
  # runtime_sort? true
  paginator CustomPaginator
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions