Improved schema infos of Manufacturer endpoints

This commit is contained in:
Jan Böhmer 2023-08-06 20:50:19 +02:00
parent 676c8eeefb
commit 6b5c51bdc5
5 changed files with 20 additions and 8 deletions

View file

@ -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'])]