mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-16 21:34:38 +02:00
Allow to create attachments and parameters via PATCH operations on their owning elemens as direct POST operations are not possible yet
This partly fixes issue #502
This commit is contained in:
parent
3548f12deb
commit
7ae0fad356
11 changed files with 11 additions and 11 deletions
|
@ -67,7 +67,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
new Delete(security: 'is_granted("delete", object)'),
|
||||
],
|
||||
normalizationContext: ['groups' => ['location:read', 'api:basic:read'], 'openapi_definition_name' => 'Read'],
|
||||
denormalizationContext: ['groups' => ['location:write', 'api:basic:write'], 'openapi_definition_name' => 'Write'],
|
||||
denormalizationContext: ['groups' => ['location:write', 'api:basic:write', 'attachment:write', 'parameter:write'], 'openapi_definition_name' => 'Write'],
|
||||
)]
|
||||
#[ApiResource(
|
||||
uriTemplate: '/storage_locations/{id}/children.{_format}',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue