mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Document API changes in grocy.openapi.json (closes #969)
This commit is contained in:
parent
491b74efa8
commit
62c9c285ba
@ -10,7 +10,7 @@ _- (Because the stock quantity unit is now the base for everything, it cannot be
|
||||
- Each product barcode can be assigned an amount, quantity unit and store (on the product edit page), which is then automatically prefilled on the purchase page
|
||||
- (Thanks @kriddles for the initial work on this)
|
||||
|
||||
### New feature: Permissions
|
||||
### New feature: User permissions
|
||||
- Users can now have permissions, can be configured per user on the "Manage users" page (lock icon)
|
||||
- Default permissions for new users can be set via a new `config.php` setting `DEFAULT_PERMISSIONS` (defaults to `ADMIN`, so no changed behavior when not configured)
|
||||
- All currently existing users will get all permissions (`ADMIN`) during the update/migration
|
||||
@ -143,6 +143,8 @@ _- (Because the stock quantity unit is now the base for everything, it cannot be
|
||||
- `/objects/{entity}`
|
||||
- `/stock/products/{productId}/entries`
|
||||
- `/stock/products/{productId}/locations`
|
||||
- `/stock/journal`
|
||||
- `/stock/journal/summary`
|
||||
- `/recipes/fulfillment`
|
||||
- `/users`
|
||||
- `/tasks`
|
||||
@ -164,6 +166,7 @@ _- (Because the stock quantity unit is now the base for everything, it cannot be
|
||||
- `<value>` is the value to search for
|
||||
- New endpoints `/stock/journal` and `/stock/journal/summary` to get the stock journal (thanks @fipwmaqzufheoxq92ebc)
|
||||
- New endpoint `/stock/shoppinglist/add-expired-products` to add all currently in-stock but expired products to a shopping list (thanks @m-byte)
|
||||
- New endpoints GET/POST/PUT `/users/{userId}/permissions` for the new user permissions feature mentioned above
|
||||
- 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)
|
||||
|
@ -134,7 +134,7 @@ class UsersApiController extends BaseApiController
|
||||
|
||||
return $this->ApiResponse(
|
||||
$response,
|
||||
$this->getDatabase()->user_permissions()->where($args['userId'])
|
||||
$this->getDatabase()->user_permissions()->where('user_id', $args['userId'])
|
||||
);
|
||||
}
|
||||
catch (\Slim\Exception\HttpSpecializedException $ex)
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user