-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServiceBodiesController.php
More file actions
32 lines (29 loc) · 1.23 KB
/
Copy pathServiceBodiesController.php
File metadata and controls
32 lines (29 loc) · 1.23 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 ServiceBodiesController extends Controller
{
#[OA\Get(
path: '/client_interface/json/?switcher=GetServiceBodies',
operationId: 'getServiceBodies',
summary: 'Get service bodies',
tags: ['Service Bodies'],
parameters: [
new OA\Parameter(name: 'switcher', in: 'query', required: true, schema: new OA\Schema(type: 'string', enum: ['GetServiceBodies'])),
new OA\Parameter(ref: '#/components/parameters/Services'),
new OA\Parameter(ref: '#/components/parameters/ServicesArray'),
new OA\Parameter(ref: '#/components/parameters/Recursive'),
new OA\Parameter(name: 'parents', in: 'query', description: 'Set to `1` to include parent service bodies in the result.', schema: new OA\Schema(type: 'string', enum: ['0', '1'])),
],
responses: [
new OA\Response(
response: 200,
description: 'List of service bodies',
content: new OA\JsonContent(type: 'array', items: new OA\Items(ref: '#/components/schemas/ServiceBody'))
),
]
)]
public function getServiceBodies()
{
}
}