Also return userfields in generic object(s) GET API routes (closes #601)

This commit is contained in:
Bernd Bestel
2020-04-13 16:52:34 +02:00
parent 87e68523e5
commit 25be604b31
2 changed files with 30 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
- New endpoint `/user/settings` to get all user settings of the currently logged in user (key/value pairs)
- New endpoint `/system/config` to get all config settings (`config.php`) (key/value pairs)
- The endpoint `/stock/products/{productId}/locations` now also returns the current stock amount of the product in that loctation (new field/property `amount`) (thanks @Forceu)
- The endpoints `/objects/{entity}` and `/objects/{entity}/{objectId}` now also include/return userfields of the object(s) (new field/property `userfields` per object, is an array of key/value pairs and `null`, when the object has no userfields)
- Fixed that CORS was broken (there was no response to preflight OPTIONS requests)
### General & other improvements/fixes