diff --git a/disperser/dataapi/docs/docs.go b/disperser/dataapi/docs/docs.go index b597193606..550f7938ed 100644 --- a/disperser/dataapi/docs/docs.go +++ b/disperser/dataapi/docs/docs.go @@ -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": { @@ -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": { diff --git a/disperser/dataapi/docs/swagger.json b/disperser/dataapi/docs/swagger.json index a7a0b56603..1fc232d13d 100644 --- a/disperser/dataapi/docs/swagger.json +++ b/disperser/dataapi/docs/swagger.json @@ -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": { @@ -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": { diff --git a/disperser/dataapi/docs/swagger.yaml b/disperser/dataapi/docs/swagger.yaml index 81463d170f..53f58bf5c0 100644 --- a/disperser/dataapi/docs/swagger.yaml +++ b/disperser/dataapi/docs/swagger.yaml @@ -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 @@ -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 diff --git a/disperser/dataapi/server_v2.go b/disperser/dataapi/server_v2.go index 0a50e1488a..f8bc44dd5c 100644 --- a/disperser/dataapi/server_v2.go +++ b/disperser/dataapi/server_v2.go @@ -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" @@ -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"