-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filters, sorting, paging... #14
Comments
I got error after some queries and application crashed. Error Detail : |
I checked the issue. It's ok about selection and paging. Selection Test: Paging Tests: OK
Selection and Paging Tests |
Field selection
Paging (Slice)
To send the total entries back to the user use the custom HTTP header: X-Total-Count.
Content-Range offset – limit / count.
offset: Index of the first element returned by the request.
limit: Index of the last element returned by the request.
count: Total number of elements in the collection.
Accept-Range resource max.
resource: The type of pagination. Must remind of the resource in use, e.g: client, order, restaurant, …
max : Maximum number of elements that can be returned in a single request.
Sorting
_sort
.-
, ascending describe as+
.GET /cars?_sort=-manufactorer,+model
Operators
_filter
query parameter and continue with field names,operations and values separated by,
._filter=<fieldname><operation><value>
.=
equal!=
not equal<
less<=
less or equals>
greater>=
greater or equals~=
like|=
in (values must be separated with|
GET http://127.0.0.1:8080/robe/users?_filter=name=seray,active=true
Full-text search
_q
.GET /cars?_q=nissan
The text was updated successfully, but these errors were encountered: