-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerController.php
More file actions
56 lines (52 loc) · 2.05 KB
/
Copy pathServerController.php
File metadata and controls
56 lines (52 loc) · 2.05 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Bmlt\SemanticOpenApi\Swagger;
use OpenApi\Attributes as OA;
class ServerController extends Controller
{
#[OA\Get(
path: '/client_interface/json/?switcher=GetServerInfo',
operationId: 'getServerInfo',
summary: 'Get server information',
tags: ['Server'],
parameters: [
new OA\Parameter(name: 'switcher', in: 'query', required: true, schema: new OA\Schema(type: 'string', enum: ['GetServerInfo'])),
],
responses: [
new OA\Response(
response: 200,
description: "Server metadata such as version, language, semantic admin URL, etc.",
content: new OA\JsonContent(type: 'array', items: new OA\Items(ref: '#/components/schemas/ServerInfo'))
),
]
)]
public function getServerInfo()
{
}
#[OA\Get(
path: '/client_interface/json/?switcher=GetCoverageArea',
operationId: 'getCoverageArea',
summary: "Get the geographic coverage bounding box for this server",
tags: ['Server'],
parameters: [
new OA\Parameter(name: 'switcher', in: 'query', required: true, schema: new OA\Schema(type: 'string', enum: ['GetCoverageArea'])),
],
responses: [
new OA\Response(
response: 200,
description: "Bounding box for the area covered by this server's meetings",
content: new OA\JsonContent(
type: 'object',
properties: [
new OA\Property(property: 'nw_corner_longitude', type: 'number', format: 'float'),
new OA\Property(property: 'nw_corner_latitude', type: 'number', format: 'float'),
new OA\Property(property: 'se_corner_longitude', type: 'number', format: 'float'),
new OA\Property(property: 'se_corner_latitude', type: 'number', format: 'float'),
]
)
),
]
)]
public function getCoverageArea()
{
}
}