forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathppl.yaml
162 lines (162 loc) · 5.13 KB
/
ppl.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
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
openapi: 3.1.0
info:
title: OpenSearch PPL API
description: OpenSearch PPL API.
version: 1.0.0
paths:
/_plugins/_ppl:
post:
operationId: ppl.query.0
x-operation-group: ppl.query
x-version-added: '1.0'
description: Send a PPL query to the PPL plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/
parameters:
- $ref: '#/components/parameters/ppl.query::query.format'
- $ref: '#/components/parameters/ppl.query::query.sanitize'
requestBody:
$ref: '#/components/requestBodies/ppl.query'
responses:
'200':
$ref: '#/components/responses/ppl.query@200'
/_plugins/_ppl/_explain:
post:
operationId: ppl.explain.0
x-operation-group: ppl.explain
x-version-added: '1.0'
description: Shows how a query is executed against OpenSearch.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/
parameters:
- $ref: '#/components/parameters/ppl.explain::query.format'
- $ref: '#/components/parameters/ppl.explain::query.sanitize'
requestBody:
$ref: '#/components/requestBodies/ppl.explain'
responses:
'200':
$ref: '#/components/responses/ppl.explain@200'
/_plugins/_ppl/stats:
get:
operationId: ppl.get_stats.0
x-operation-group: ppl.get_stats
x-version-added: '1.0'
description: Collect metrics for the plugin within the interval.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/
parameters:
- $ref: '#/components/parameters/ppl.get_stats::query.format'
- $ref: '#/components/parameters/ppl.get_stats::query.sanitize'
responses:
'200':
$ref: '#/components/responses/ppl.get_stats@200'
post:
operationId: ppl.post_stats.1
x-operation-group: ppl.post_stats
x-version-added: '1.0'
description: By a stats endpoint, you are able to collect metrics for the plugin within the interval.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/
parameters:
- $ref: '#/components/parameters/ppl.post_stats::query.format'
- $ref: '#/components/parameters/ppl.post_stats::query.sanitize'
requestBody:
$ref: '#/components/requestBodies/ppl.post_stats'
responses:
'200':
$ref: '#/components/responses/ppl.post_stats@200'
components:
parameters:
ppl.query::query.format:
name: format
in: query
description: A short version of the Accept header (for example, `json`, `yaml`).
schema:
type: string
ppl.query::query.sanitize:
name: sanitize
in: query
description: Specifies whether to escape special characters in the results.
schema:
type: boolean
default: true
ppl.explain::query.format:
name: format
in: query
description: A short version of the Accept header (for example, `json`, `yaml`).
schema:
type: string
ppl.explain::query.sanitize:
name: sanitize
in: query
description: Specifies whether to escape special characters in the results.
schema:
type: boolean
default: true
ppl.get_stats::query.format:
name: format
in: query
description: A short version of the Accept header (for example, `json`, `yaml`).
schema:
type: string
ppl.get_stats::query.sanitize:
name: sanitize
in: query
description: Specifies whether to escape special characters in the results.
schema:
type: boolean
default: true
ppl.post_stats::query.format:
name: format
in: query
description: A short version of the Accept header (for example, `json`, `yaml`).
schema:
type: string
ppl.post_stats::query.sanitize:
name: sanitize
in: query
description: Specifies whether to escape special characters in the results.
schema:
type: boolean
default: true
requestBodies:
ppl.query:
content:
application/json:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/Query'
required: true
ppl.explain:
content:
application/json:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/Explain'
required: true
ppl.post_stats:
content:
application/json:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/Stats'
required: true
responses:
ppl.query@200:
description: ''
content:
application/json:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/QueryResponse'
ppl.explain@200:
content:
application/json:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/ExplainResponse'
ppl.get_stats@200:
content:
text/plain:
schema:
type: string
ppl.post_stats@200:
content:
text/plain:
schema:
type: string