-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormatsController.php
More file actions
32 lines (29 loc) · 1.3 KB
/
Copy pathFormatsController.php
File metadata and controls
32 lines (29 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Bmlt\SemanticOpenApi\Swagger;
use OpenApi\Attributes as OA;
class FormatsController extends Controller
{
#[OA\Get(
path: '/client_interface/json/?switcher=GetFormats',
operationId: 'getFormats',
summary: 'Get meeting formats',
tags: ['Formats'],
parameters: [
new OA\Parameter(name: 'switcher', in: 'query', required: true, schema: new OA\Schema(type: 'string', enum: ['GetFormats'])),
new OA\Parameter(ref: '#/components/parameters/LangEnum'),
new OA\Parameter(ref: '#/components/parameters/ShowAll'),
new OA\Parameter(name: 'format_ids', in: 'query', description: 'Format IDs to include (positive) or exclude (negative). Comma-separated.', schema: new OA\Schema(type: 'string', example: '1,2,-3')),
new OA\Parameter(name: 'key_strings', in: 'query', description: 'Format key strings to filter by. Comma-separated.', schema: new OA\Schema(type: 'string', example: 'O,C')),
],
responses: [
new OA\Response(
response: 200,
description: 'List of formats',
content: new OA\JsonContent(type: 'array', items: new OA\Items(ref: '#/components/schemas/Format'))
),
]
)]
public function getFormats()
{
}
}