-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I have an API that achieves pagination using query parameters in the URL. The maximum items returned is 50 so an offset/skip is needed to retrieve the full dataset
Is this possible using the library as-is? I have hacked it for now by adding a "skip" parameter to the resource that gets passed as a filter
read(:list_companies) do
argument :skip, :integer do
allow_nil? true
default 0
end
filter expr(skip == ^arg(:skip))
endThe limit is working nicely as-is:
limit_with {:param, "limit"}Metadata
Metadata
Assignees
Labels
No labels