-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
193 lines (193 loc) · 4.96 KB
/
openapi.yaml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
openapi: 3.0.3
info:
title: PTZ Microservice
description: >-
Documentation for the PTZ microservice API. It allows to perform pan, tilt and zoom (PTZ) operation
over a a 360 (equirectangular) video.
contact:
email: [email protected]
version: 1.0.1
externalDocs:
description: Find out more about PTZ Microservice
url: https://developer.ridgerun.com/wiki/index.php/Metropolis_Microservices/RidgeRun_Services/PTZ
servers:
- url: http://127.0.0.1:5010
tags:
- name: position
description: Camera position
- name: zoom
description: Camera Zoom
- name: stream
description: Stream Information
paths:
/position:
put:
tags:
- position
summary: Updates the camera position
description: Updates the camera pan and tilt in digrees
operationId: update_position
requestBody:
description: Update the camera position
content:
application/json:
schema:
$ref: '#/components/schemas/Position'
required: true
responses:
'200':
description: Successful operation
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
get:
tags:
- position
summary: Gets the camera position
description: Gets the camera position
operationId: get_position
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Position'
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/zoom:
put:
tags:
- zoom
summary: Updates the camera zoom
description: Updates the camera zoom
operationId: update_zoom
requestBody:
description: Update the camera zoom
content:
application/json:
schema:
$ref: '#/components/schemas/Zoom'
required: true
responses:
'200':
description: Successful operation
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
get:
tags:
- zoom
summary: Gets the camera zoom
description: Gets the camera zoom
operationId: get_zoom
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Zoom'
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/stream:
put:
tags:
- stream
summary: Sets the input and output Stream URI
description: Sets the input Stream URI and the output stream port and mapping. The input stream could be an RTSP stream URI or a VST stream name
operationId: update_stream
requestBody:
description: Sets the input Stream URI
content:
application/json:
schema:
$ref: '#/components/schemas/Stream'
required: true
responses:
'200':
description: Successful operation
'400':
description: Operation failed
get:
tags:
- stream
summary: Gets the input stream
description: Gets the input stream
operationId: get_stream
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Stream'
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
components:
schemas:
Position:
required:
- pan
- tilt
type: object
properties:
pan:
type: string
format: float
example: '45.0'
tilt:
type: string
format: float
example: '45.0'
Zoom:
required:
- zoom
type: object
properties:
zoom:
type: string
format: float
example: '2.0'
Stream:
required:
- in_uri
- out_port
- out_mapping
type: object
properties:
in_uri:
type: string
example: rtsp://127.0.0.1:5000/stream1
out_port:
type: integer
example: 5555
out_mapping:
type: string
example: stream1
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
message:
type: string