docs: add OpenAPI description on the operations

This commit is contained in:
Maël Gangloff
2025-12-07 17:01:21 +01:00
parent 82992c4be9
commit 5a31e53234
9 changed files with 93 additions and 15 deletions

View File

@@ -11,8 +11,11 @@ use App\Controller\InstanceController;
new Get(
uriTemplate: '/config',
controller: InstanceController::class,
openapiContext: [
'summary' => 'Public configuration of the server',
'description' => 'This endpoint allows you to retrieve the public configuration of the Domain Watchdog API server. For example, you can retrieve the user authentication configuration.',
],
shortName: 'Configuration',
description: 'Public configuration of the server',
read: false
),
]