-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ruirui Zhang <[email protected]>
- Loading branch information
Showing
4 changed files
with
128 additions
and
128 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: OpenSearch Workload Management Query Group API | ||
description: Query group lifecycle APIs for the workload management plugin. | ||
version: 1.0.0 | ||
paths: | ||
/_wlm/query_group: | ||
get: | ||
operationId: wlm.get_query_group.0 | ||
x-operation-group: wlm.get_query_group | ||
x-version-added: '2.17' | ||
description: Gets the specified QueryGroup or get all if no name is provided. | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/wlm.get_query_group@200' | ||
put: | ||
operationId: wlm.create_query_group.0 | ||
x-operation-group: wlm.create_query_group | ||
x-version-added: '2.17' | ||
description: Creates the specified query group. | ||
requestBody: | ||
$ref: '#/components/requestBodies/wlm.create_query_group' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/wlm.create_query_group@200' | ||
/_wlm/query_group/{name}: | ||
get: | ||
operationId: wlm.get_query_group.1 | ||
x-operation-group: wlm.get_query_group | ||
x-version-added: '2.17' | ||
description: Gets the specified QueryGroup or get all if no name is provided. | ||
parameters: | ||
- $ref: '#/components/parameters/wlm.get_query_group::path.name' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/wlm.get_query_group@200' | ||
put: | ||
operationId: wlm.update_query_group.0 | ||
x-operation-group: wlm.update_query_group | ||
x-version-added: '2.17' | ||
description: Updates the specified query group. | ||
parameters: | ||
- $ref: '#/components/parameters/wlm.update_query_group::path.name' | ||
requestBody: | ||
$ref: '#/components/requestBodies/wlm.update_query_group' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/wlm.update_query_group@200' | ||
delete: | ||
operationId: wlm.delete_query_group.0 | ||
x-operation-group: wlm.delete_query_group | ||
x-version-added: '2.17' | ||
description: Deletes the specified QueryGroup. | ||
parameters: | ||
- $ref: '#/components/parameters/wlm.delete_query_group::path.name' | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/wlm.delete_query_group@200' | ||
components: | ||
requestBodies: | ||
wlm.create_query_group: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupCreate' | ||
required: true | ||
wlm.update_query_group: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupUpdate' | ||
required: true | ||
responses: | ||
wlm.create_query_group@200: | ||
description: '' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' | ||
wlm.update_query_group@200: | ||
description: '' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' | ||
wlm.delete_query_group@200: | ||
description: '' | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
acknowledged: | ||
type: boolean | ||
wlm.get_query_group@200: | ||
description: '' | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
query_groups: | ||
type: array | ||
items: | ||
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' | ||
parameters: | ||
wlm.update_query_group::path.name: | ||
name: name | ||
in: path | ||
description: QueryGroup name. | ||
schema: | ||
type: string | ||
required: true | ||
wlm.delete_query_group::path.name: | ||
name: name | ||
in: path | ||
description: QueryGroup name. | ||
schema: | ||
type: string | ||
required: true | ||
wlm.get_query_group::path.name: | ||
name: name | ||
in: path | ||
description: QueryGroup name. | ||
schema: | ||
type: string | ||
required: true |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../plugins/wlm/query_group/query_group.yaml → tests/plugins/wlm/query_group.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters