Skip to content

Commit

Permalink
Update ejection api doc (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Apr 30, 2024
1 parent 979707d commit 13362c3
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 @@ -241,7 +241,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 @@ -325,7 +325,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 13362c3

Please sign in to comment.