Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ruirui Zhang <mariazrr@amazon.com>
  • Loading branch information
ruai0511 committed Oct 30, 2024
1 parent 37729e4 commit 0148900
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
68 changes: 34 additions & 34 deletions spec/namespaces/query_group.yaml → spec/namespaces/wlm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,84 +6,84 @@ info:
paths:
/_wlm/query_group:
get:
operationId: query_group.get.0
x-operation-group: 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/query_group.get@200'
$ref: '#/components/responses/wlm.get_query_group@200'
put:
operationId: query_group.create.0
x-operation-group: query_group.create
operationId: wlm.create_query_group.0
x-operation-group: wlm.create_query_group
x-version-added: '2.17'
description: Creates a specified query group.
requestBody:
$ref: '#/components/requestBodies/query_group.create'
$ref: '#/components/requestBodies/wlm.create_query_group'
responses:
'200':
$ref: '#/components/responses/query_group.create@200'
$ref: '#/components/responses/wlm.create_query_group@200'
/_wlm/query_group/{name}:
get:
operationId: query_group.get.1
x-operation-group: query_group.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/query_group.get::path.name'
- $ref: '#/components/parameters/wlm.get_query_group::path.name'
responses:
'200':
$ref: '#/components/responses/query_group.get@200'
$ref: '#/components/responses/wlm.get_query_group@200'
put:
operationId: query_group.update.0
x-operation-group: query_group.update
operationId: wlm.update_query_group.0
x-operation-group: wlm.update_query_group
x-version-added: '2.17'
description: Updates a specified query group.
parameters:
- $ref: '#/components/parameters/query_group.update::path.name'
- $ref: '#/components/parameters/wlm.update_query_group::path.name'
requestBody:
$ref: '#/components/requestBodies/query_group.update'
$ref: '#/components/requestBodies/wlm.update_query_group'
responses:
'200':
$ref: '#/components/responses/query_group.update@200'
$ref: '#/components/responses/wlm.update_query_group@200'
delete:
operationId: query_group.delete.1
x-operation-group: query_group.delete
operationId: wlm.delete_query_group.1
x-operation-group: wlm.delete_query_group
x-version-added: '2.17'
description: Deletes the specified QueryGroups or delete all if no name is provided.
parameters:
- $ref: '#/components/parameters/query_group.delete::path.name'
- $ref: '#/components/parameters/wlm.delete_query_group::path.name'
responses:
'200':
$ref: '#/components/responses/query_group.delete@200'
$ref: '#/components/responses/wlm.delete_query_group@200'
components:
requestBodies:
query_group.create:
wlm.create_query_group:
content:
application/json:
schema:
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupCreate'
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupCreate'
required: true
query_group.update:
wlm.update_query_group:
content:
application/json:
schema:
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupUpdate'
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupUpdate'
required: true
responses:
query_group.create@200:
wlm.create_query_group@200:
description: ''
content:
application/json:
schema:
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
query_group.update@200:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
wlm.update_query_group@200:
description: ''
content:
application/json:
schema:
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
query_group.delete@200:
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
wlm.delete_query_group@200:
description: ''
content:
application/json:
Expand All @@ -92,7 +92,7 @@ components:
properties:
acknowledged:
type: boolean
query_group.get@200:
wlm.get_query_group@200:
description: ''
content:
application/json:
Expand All @@ -102,23 +102,23 @@ components:
query_groups:
type: array
items:
$ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse'
$ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse'
parameters:
query_group.update::path.name:
wlm.update_query_group::path.name:
name: name
in: path
description: QueryGroup name.
schema:
type: string
required: true
query_group.delete::path.name:
wlm.delete_query_group::path.name:
name: name
in: path
description: QueryGroup name.
schema:
type: string
required: true
query_group.get::path.name:
wlm.get_query_group::path.name:
name: name
in: path
description: QueryGroup name.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../../../../json_schemas/test_story.schema.yaml
$schema: ../../../json_schemas/test_story.schema.yaml

description: This story tests all endpoints relevant to QueryGroups, from creation to deletion.

Expand Down

0 comments on commit 0148900

Please sign in to comment.