Skip to content

Commit

Permalink
fix structure of sql stats 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 7a075cd commit a14a618
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions spec/namespaces/sql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ components:
required: true
sql.get_stats@200:
content:
application/json:
text/plain:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/SqlStatsResponse'
type: string
required: true
sql.post_stats@200:
content:
application/json:
text/plain:
schema:
$ref: '../schemas/sql._common.yaml#/components/schemas/SqlStatsResponse'
type: string
required: true
2 changes: 2 additions & 0 deletions spec/schemas/sql._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ components:
type: array
items:
type: array
cursor:
type: string
total:
type: integer
size:
Expand Down
3 changes: 2 additions & 1 deletion tests/sql/stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ chapters:
path: /_plugins/_sql/stats
method: POST
response:
status: 200
status: 200
content_type: text/plain

0 comments on commit a14a618

Please sign in to comment.