-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
175 lines (175 loc) · 3.77 KB
/
Copy pathopenapi.yaml
File metadata and controls
175 lines (175 loc) · 3.77 KB
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
components:
schemas:
Error:
properties:
code:
type: integer
error:
type: string
message:
type: string
type: object
HealthCheck:
properties:
status:
enum:
- ok
- error
type: string
timestamp:
format: date-time
type: string
version:
type: string
type: object
info:
description: Auto-generated OpenAPI spec for testql
title: testql API
version: 1.0.0
openapi: 3.0.3
paths:
/oql/file:
get:
operationId: oql_read_file
parameters:
- in: query
name: path
required: false
schema:
type: str
responses:
'200': &id001
content:
application/json:
schema:
type: object
description: Success
'401': &id002
description: Unauthorized
'404': &id003
description: Not Found
'500': &id004
description: Internal Server Error
summary: Read a TestQL file content (.testql.toon.yaml / .oql / .tql).
tags:
- fastapi
- oql
/oql/files:
get:
operationId: oql_list_files
responses:
'200': *id001
'401': *id002
'404': *id003
'500': *id004
summary: List all .testql.toon.yaml files in the project (with .oql/.tql fallback).
tags:
- fastapi
- oql
/oql/log:
get:
operationId: oql_read_log
parameters:
- in: query
name: name
required: false
schema:
type: str
responses:
'200': *id001
'401': *id002
'404': *id003
'500': *id004
summary: Read a specific log file.
tags:
- fastapi
- oql
/oql/logs:
get:
operationId: oql_list_logs
responses:
'200': *id001
'401': *id002
'404': *id003
'500': *id004
summary: List available log files.
tags:
- fastapi
- oql
/oql/run-file:
post:
operationId: oql_run_file
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'201': &id005
content:
application/json:
schema:
type: object
description: Created
'400': &id006
content:
application/json:
schema:
properties:
detail:
type: string
error:
type: string
type: object
description: Bad Request
'401': *id002
'404': *id003
'500': *id004
summary: Run an entire OQL file with validation. Returns structured results
+ saves log.
tags:
- fastapi
- oql
/oql/run-line:
post:
operationId: oql_run_line
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'201': *id005
'400': *id006
'401': *id002
'404': *id003
'500': *id004
summary: Execute a single OQL command line via the encoder bridge.
tags:
- fastapi
- oql
/oql/tables:
get:
operationId: oql_list_tables
parameters:
- in: query
name: path
required: false
schema:
type: str
responses:
'200': *id001
'401': *id002
'404': *id003
'500': *id004
summary: Extract table names from an OQL file.
tags:
- fastapi
- oql
servers:
- description: Local development
url: http://localhost:8101
- description: Relative
url: /