From 0ed1813beed8a903b18cfded9888da6cecc5a512 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 1 Sep 2020 20:17:23 +0200 Subject: [PATCH] Added changelog for #985 --- changelog/60_UNRELEASED_2020-xx-xx.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/changelog/60_UNRELEASED_2020-xx-xx.md b/changelog/60_UNRELEASED_2020-xx-xx.md index eb788756..26534593 100644 --- a/changelog/60_UNRELEASED_2020-xx-xx.md +++ b/changelog/60_UNRELEASED_2020-xx-xx.md @@ -70,6 +70,29 @@ - Breaking changes: - All prices are now related to the products **stock** quantity unit (instead the purchase QU) - The product object no longer has a field `barcodes` with a comma separated barcode list, instead barcodes are now stored in a separate table/entity `product_barcodes` (use the existing "Generic entity interactions" endpoints to access them) +- The output of the following endpoints can now be filtered (by any field), ordered and paginated (thanks @fipwmaqzufheoxq92ebc) + - `/objects/{entity}/search` + - `/stock/products/{productId}/entries` + - `/stock/products/{productId}/locations` + - `/recipes/fulfillment` + - `/users` + - `/tasks` + - `/chores` + - `/batteries` + - There are 4 new (optional) query parameters to use that + - `order` The field to order by + - `limit` The maximum number of objects to return + - `offset` The number of objects to skip + - `query[]` An array of conditions, each of them is a string in the form of ``, where + - `` is a field name + - `` is a comparison operator, one of + - `=` equal + - `~` LIKE + - `<` less + - `>` greater + - `>=` greater or equal + - `<=` less or equal + - `` is the value to search for - Performance improvements of the `/stock/products/*` endpoints (thanks @fipwmaqzufheoxq92ebc) - Fixed that the endpoint `/objects/{entity}/{objectId}` always returned successfully, even when the given object not exists (now returns `404` when the object is not found) (thanks @fipwmaqzufheoxq92ebc) - Fixed that the endpoint `/stock/volatile` didn't include products which expire today (thanks @fipwmaqzufheoxq92ebc)