Skip to content

Commit

Permalink
fix: Fixed runComponent swagger definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bahattincinic committed May 20, 2024
1 parent 2d86a06 commit 3090f15
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (a *API) deleteComponent(c echo.Context) error {
// @Tags dashboard
// @Accept json
// @Produce json
// @Success 204
// @Success 200 {object} queue.TaskResult
// @Router /dashboards/{id}/components/{cpid}/run [post]
func (a *API) runComponent(c echo.Context) error {
component := c.Get(componentContextKey).(*models.Component)
Expand Down
7 changes: 5 additions & 2 deletions api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,11 @@ const docTemplate = `{
],
"summary": "Run Dashboard Component",
"responses": {
"204": {
"description": "No Content"
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/queue.TaskResult"
}
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,11 @@
],
"summary": "Run Dashboard Component",
"responses": {
"204": {
"description": "No Content"
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/queue.TaskResult"
}
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,10 @@ paths:
produces:
- application/json
responses:
"204":
description: No Content
"200":
description: OK
schema:
$ref: '#/definitions/queue.TaskResult'
summary: Run Dashboard Component
tags:
- dashboard
Expand Down

0 comments on commit 3090f15

Please sign in to comment.