mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Improved schema infos of Manufacturer endpoints
This commit is contained in:
parent
676c8eeefb
commit
6b5c51bdc5
5 changed files with 20 additions and 8 deletions
|
@ -83,10 +83,10 @@ use Jbtronics\TFAWebauthn\Model\TwoFactorInterface as WebauthnTwoFactorInterface
|
|||
#[ApiResource(
|
||||
shortName: 'User',
|
||||
operations: [
|
||||
new Get(),
|
||||
new GetCollection(),
|
||||
new Get(openapiContext: ['summary' => 'Get a specific user.']),
|
||||
new GetCollection(openapiContext: ['summary' => 'Get all users defined in the system.']),
|
||||
],
|
||||
normalizationContext: ['groups' => ['user:read']],
|
||||
normalizationContext: ['groups' => ['user:read'], 'openapi_definition_name' => 'Read'],
|
||||
)]
|
||||
#[ApiFilter(PropertyFilter::class)]
|
||||
#[ApiFilter(SearchFilter::class, properties: ['name' => 'exact', 'email' => 'exact'])]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue