-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswagger.yml
97 lines (97 loc) · 2.13 KB
/
swagger.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
swagger: "2.0"
info:
description: "HTTP API for querying Seedlink stream latencies"
version: "1.0.0"
title: "Seedlink Latency API"
termsOfService: "http://swagger.io/terms/"
contact:
email: "[email protected]"
license:
name: "MIT"
url: "https://opensource.org/licenses/MIT"
host: "127.0.0.1"
basePath: "/"
tags:
- name: "latency"
description: "HTTP API for Seedlink stream latencies"
schemes:
- "http"
paths:
/version:
get:
tags:
- "version"
summary: "Returns API version"
description: "Version of the latency API"
produces:
- "plain/text"
responses:
200:
description: "OK"
/:
get:
tags:
- "latency"
summary: "Get stream latency statuses"
description: "Entrypoint for querying Seedlink stream latencies"
operationId: "getStreamLatency"
produces:
- "application/json"
parameters:
- name: "network"
in: "query"
description: "Network code of stream"
type: "array"
items:
type: "string"
- name: "station"
in: "query"
description: "Station code of stream"
type: "array"
items:
type: "string"
- name: "location"
in: "query"
description: "Location code of stream"
type: "array"
items:
type: "string"
- name: "channel"
in: "query"
description: "Channel code of stream"
type: "array"
items:
type: "string"
responses:
200:
description: "OK"
schema:
type: "array"
items:
$ref: "#/definitions/LatencyStatus"
400:
description: "Bad Request"
definitions:
LatencyStatus:
type: "object"
required:
- "network"
- "station"
- "location"
- "channel"
- "end"
- "msLatency"
properties:
network:
type: "string"
station:
type: "string"
location:
type: "string"
channel:
type: "string"
end:
type: "string"
format: "date-time"
msLatency:
type: "integer"