-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
89 lines (87 loc) · 2.46 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
openapi: 3.0.3
info:
title: Detection Microservice
description: >-
Documentation for the Detection microservice. It allows to perform detection based on input requests
written in natural language.
contact:
email: [email protected]
version: 1.0.1
externalDocs:
description: Find out more about Detection Microservice
url: https://developer.ridgerun.com/wiki/index.php/Metropolis_Microservices/RidgeRun_Services/Detection
paths:
/search:
get:
summary: Searchs objects prompted
description: Query for objects detection in input video
operationId: search_objects
parameters:
- in: query
name: objects
required: true
schema:
type: array
items:
type: string
minItems: 1
style: simple
description: The objects to be search
example: [a car, a ball]
- in: query
name: thresholds
required: true
schema:
type: array
items:
type: float
minItems: 1
style: simple
description: The detection score threshold for each object or a single threshold for all the objects
examples:
multiple:
value: [0.2, 0.3]
summary: A score threshold for each object
single:
value: [0.2]
summary: A single threshold for all the objects
responses:
'200':
description: Successful operation
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/source:
put:
summary: Change video source
description: Change video source to the VST's stream with the given name
operationId: change_source
parameters:
- in: query
name: name
required: true
schema:
type: string
description: The name of stream in VST
responses:
'200':
description: Successful operation
'400':
description: Operation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
components:
schemas:
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
message:
type: string