-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathopenapi.yml
46 lines (43 loc) · 1.17 KB
/
openapi.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
openapi: 3.0.0
info:
title: kytos/kronos
version: latest
description: Persistence NApp with support to multiple times series databases backends.
paths:
/v1/namespace/value:
post:
summary: Store data in some specific backend
operationId: save_data
requestBody:
description: Method to store data in a backend
required: true
content:
application/json:
schema:
type: object
responses:
'400':
description: Bad request
'404':
description: Data not found
/v1/namespace/start:
get:
summary: Retrieve and return data from a namespace
operationId: retrieve_data
responses:
'200':
description: Query result from a backend
content:
application/json:
schema:
type: array
items:
example:
- {
"namespace": "text_value",
"atribute": "value"
}
'400':
description: Bad request
'404':
description: Data not found