-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_schema.yml
74 lines (70 loc) · 1.71 KB
/
api_schema.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
openapi: 3.0.0
info:
title: CloudWatch Viewer Web Api
description: API for quering AWS CloudWatch with sql
version: 1.0.0
servers:
- url: 'http://cloudwatch-viewer-web.com/api'
description: Main server
paths:
/alive:
get:
summary: Check is service alive
description: This route serves checking service status
responses:
'200':
description: Service is alive
/query:
post:
summary: Select logs data using sql query
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
example:
query: select * from logs limit 10
responses:
'200':
description: Data selected successfully
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Data selected successfully
components:
schemas:
FilesList:
type: object
properties:
log_stream_name:
type: string
example: "foo"
log_creation_time:
type: int
example: "123"
first_event_timestamp:
type: int
example: "123"
last_event_timestamp:
type: int
example: "123"
last_ingestion_time:
type: int
example: "123"
timestamp:
type: int
example: "123"
message:
type: string
example: "foobarbaz"
ingestion_time:
type: int
example: "123"