-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yaml
59 lines (58 loc) · 1.77 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
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: Minerva API
description: The minerva service definition.
version: 0.0.1
paths:
/minerva/auditSqlType:
post:
tags:
- Minerva
operationId: Minerva_ParseSqlType
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/minerva.v1.ParseSqlTypeRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/minerva.v1.ParseSqlTypeReply'
components:
schemas:
minerva.v1.ParseSqlTypeReply:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
data:
type: array
items:
$ref: '#/components/schemas/minerva.v1.ParseSqlTypeReply_SqlCheckResult'
minerva.v1.ParseSqlTypeReply_SqlCheckResult:
type: object
properties:
sql:
type: string
sqlType:
type: array
items:
type: string
risk:
type: string
minerva.v1.ParseSqlTypeRequest:
type: object
properties:
sql:
type: string
tags:
- name: Minerva