Skip to content

Commit

Permalink
Update ejection api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Apr 30, 2024
1 parent 4d42744 commit 14f2352
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion disperser/dataapi/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const docTemplate = `{
"basePath": "{{.BasePath}}",
"paths": {
"/ejector/operators": {
"get": {
"post": {
"produces": [
"application/json"
],
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"paths": {
"/ejector/operators": {
"get": {
"post": {
"produces": [
"application/json"
],
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ info:
version: "1"
paths:
/ejector/operators:
get:
post:
parameters:
- description: 'Lookback window for operator ejection [default: 86400]'
in: query
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (s *server) Shutdown() error {
// @Failure 400 {object} ErrorResponse "error: Bad request"
// @Failure 404 {object} ErrorResponse "error: Not found"
// @Failure 500 {object} ErrorResponse "error: Server error"
// @Router /ejector/operators [get]
// @Router /ejector/operators [post]
func (s *server) EjectOperatorsHandler(c *gin.Context) {
timer := prometheus.NewTimer(prometheus.ObserverFunc(func(f float64) {
s.metrics.ObserveLatency("EjectOperators", f*1000) // make milliseconds
Expand Down

0 comments on commit 14f2352

Please sign in to comment.