Open s-kostyuk opened 7 years ago
But query parameter-based approach have its own issues. For example:
page
, fields
, sort
, direction
and at the same time those parameters are used for service tasks like pagination, field selection, result sorting and so on;From this perspective, it's much easier to parse exactly one filter statement specified in single filter
parameter (like in OData) than to parse all query parameters and to build some filtering expressions based on them.
Base support implemented in https://github.com/s-kostyuk/adpl/pull/20. If you need any additional filtering by other fields, updated_since
filtering, pagination and complex search - please, let me know by endorsing this comment and/or by creating of a new comment in this issue.
Implement a support of filtering for Things (items in
/things/
REST API endpoint).Parameter-based filtering is proposed. To filter all things by their placement, the following request will be able to be used:
In support of filtering approach, based on query parameters, see the following descriptions and mentions: