Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Dec 11, 2024
1 parent 3a6591d commit f6a11ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
10 changes: 4 additions & 6 deletions disperser/dataapi/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,10 +874,9 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"description": "Operator ID",
"description": "Operator ID in hex string [default: all operators if unspecified]",
"name": "operator_id",
"in": "query",
"required": true
"in": "query"
}
],
"responses": {
Expand Down Expand Up @@ -920,10 +919,9 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"description": "Operator ID in hex string",
"description": "Operator ID in hex string [default: all operators if unspecified]",
"name": "operator_id",
"in": "query",
"required": true
"in": "query"
}
],
"responses": {
Expand Down
10 changes: 4 additions & 6 deletions disperser/dataapi/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,9 @@
"parameters": [
{
"type": "string",
"description": "Operator ID",
"description": "Operator ID in hex string [default: all operators if unspecified]",
"name": "operator_id",
"in": "query",
"required": true
"in": "query"
}
],
"responses": {
Expand Down Expand Up @@ -916,10 +915,9 @@
"parameters": [
{
"type": "string",
"description": "Operator ID in hex string",
"description": "Operator ID in hex string [default: all operators if unspecified]",
"name": "operator_id",
"in": "query",
"required": true
"in": "query"
}
],
"responses": {
Expand Down
6 changes: 2 additions & 4 deletions disperser/dataapi/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,9 @@ paths:
/operators/reachability:
get:
parameters:
- description: Operator ID
- description: 'Operator ID in hex string [default: all operators if unspecified]'
in: query
name: operator_id
required: true
type: string
produces:
- application/json
Expand All @@ -948,10 +947,9 @@ paths:
/operators/stake:
get:
parameters:
- description: Operator ID in hex string
- description: 'Operator ID in hex string [default: all operators if unspecified]'
in: query
name: operator_id
required: true
type: string
produces:
- application/json
Expand Down
4 changes: 2 additions & 2 deletions disperser/dataapi/server_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (s *ServerV2) FetchBatchHandler(c *gin.Context) {
// @Summary Operator stake distribution query
// @Tags OperatorsStake
// @Produce json
// @Param operator_id query string true "Operator ID in hex string"
// @Param operator_id query string false "Operator ID in hex string [default: all operators if unspecified]"
// @Success 200 {object} OperatorsStakeResponse
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
Expand Down Expand Up @@ -312,7 +312,7 @@ func (s *ServerV2) FetchOperatorsNodeInfo(c *gin.Context) {
// @Summary Operator node reachability check
// @Tags OperatorsReachability
// @Produce json
// @Param operator_id query string true "Operator ID"
// @Param operator_id query string false "Operator ID in hex string [default: all operators if unspecified]"
// @Success 200 {object} OperatorPortCheckResponse
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
Expand Down

0 comments on commit f6a11ac

Please sign in to comment.