This repository was archived by the owner on Jan 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathreal_time_query.yaml
99 lines (99 loc) · 3.41 KB
/
real_time_query.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
post:
tags:
- Queries
summary:
Execute Real-time query
description: |
API that allows querying the Real-time database directly. Please note that each
request must be authenticated.
requestBody:
required: true
content:
application/json:
schema:
$ref: '../index.yaml#/components/schemas/RealTimeQueryRequest'
responses:
200:
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
description: Rows with results for the query.
items:
type: object
meta:
type: object
description: Additional results metadata for the query.
properties:
count:
type: integer
description: Total number of results available for this query.
example: {"data": [[["EU", "Europe"], "Blink", 529437, 128334], [["NA", "North America"], "Blink", 199355, 47171], [["AS", "Asia"], "Blink", 153385, 37308]], "meta": {"count": 42}}
400:
description: Bad Request
content:
application/json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
status:
type: string
description: HTTP status code for the error.
detail:
type: string
description: Additional information about the error.
source:
type: object
description: Source of the error (if available).
properties:
parameter:
type: string
description: Path to the parameter that caused the error.
example: { "errors": [ { "status": "400", "detail": "Dimension \"example\" does not exist.", "source": { "parameter": "columns.column_id" } } ] }
401:
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
status:
type: string
description: HTTP status code for the error.
detail:
type: string
description: Additional information about the error.
example: { "errors": [ { "status": "401", "detail": "No valid credentials provided." } ] }
403:
description: Forbidden
content:
application/json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
status:
type: string
description: HTTP status code for the error.
detail:
type: string
description: Additional information about the error.
example: { "errors": [ { "status": "403", "detail": "No valid license found." } ] }