[API] Permits to filter on more categories and tags #841

batopa opened this Issue Apr 28, 2016 · 1 comment


None yet

2 participants

batopa commented Apr 28, 2016

Enabling the query strings filter[category] and filter[tag] in API to filter on more categories/tags

GET /objects?filter[category]=one,two

leads to a warning and doesn't work beacuse BuildFilter::categoryFilter() and BuildFilter::tagFilter() don't support an array of value but only a string.

Moreover it should be better using filter[categories] and filter[tags] to be consistent with responses obtained in GET requests.

@batopa batopa self-assigned this Apr 28, 2016
@batopa batopa added this to the 3-updates milestone Apr 28, 2016
batopa commented May 2, 2016

Requests as:

GET /objects/:id/contents?filter[category]=name

give SQL Error: 1052: Column 'object_type_id' in where clause is ambiguous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment