Skip to content

Commit

Permalink
fixing status in request body of sql query API
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Jul 24, 2024
1 parent 7efd2bb commit a9b20c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/schemas/sql._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ components:
size:
type: integer
status:
type: string
type: integer
SqlExplain:
type: object
properties:
Expand Down
13 changes: 10 additions & 3 deletions tests/sql/close.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ prologues:
- path: /{index}
method: PUT
parameters:
index: books1
index: books
request_body:
payload: {}
epilogues:
- path: /books1
- path: /books
method: DELETE
status: [200, 404]
chapters:
Expand All @@ -25,14 +25,21 @@ chapters:
year: 1991
response:
status: 201
- synopsis: Refresh the index.
path: /{index}/_refresh
method: POST
parameters:
index: books
response:
status: 200
- synopsis: Get SQL query.
id: query_sql
path: /_plugins/_sql
method: POST
request_body:
payload:
fetch_size: 1
query: SELECT * FROM books
query: "SELECT * FROM books"
response:
status: 200
output:
Expand Down

0 comments on commit a9b20c5

Please sign in to comment.