forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServersCollectionSchema.php
More file actions
35 lines (32 loc) · 1.04 KB
/
ServersCollectionSchema.php
File metadata and controls
35 lines (32 loc) · 1.04 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
<?php
namespace App\OpenApi\Schemas;
use OpenApi\Attributes as OA;
#[OA\Schema(
schema: 'ServersCollection',
type: 'object',
description: 'Collection of Ookla speedtest servers',
properties: [
new OA\Property(
property: 'data',
type: 'array',
description: 'List of server objects',
items: new OA\Items(
type: 'object',
properties: [
new OA\Property(property: 'id', type: 'string'),
new OA\Property(property: 'host', type: 'string'),
new OA\Property(property: 'name', type: 'string'),
new OA\Property(property: 'location', type: 'string'),
new OA\Property(property: 'country', type: 'string'),
]
)
),
new OA\Property(
property: 'message',
type: 'string',
description: 'Response status message'
),
],
additionalProperties: false
)]
class ServersCollectionSchema {}