mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Added some documentation to the API
This commit is contained in:
parent
f01ec9dbe4
commit
6387c24c89
4 changed files with 144 additions and 1 deletions
|
@ -44,7 +44,7 @@ use Symfony\Component\Validator\Constraints\NotBlank;
|
|||
#[UniqueEntity(fields: ['name', 'user'])]
|
||||
|
||||
#[ApiResource(
|
||||
uriTemplate: '/current.{_format}',
|
||||
uriTemplate: '/tokens/current.{_format}',
|
||||
description: 'A token used to authenticate API requests.',
|
||||
operations: [new Get(openapiContext: ['summary' => 'Get information about the API token that is currently used.'])],
|
||||
normalizationContext: ['groups' => ['token:read', 'api:basic:read'], 'openapi_definition_name' => 'Read'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue