fix method in openapi for rebase api (#2689)

* fix method in openapi for rebase api
This commit is contained in:
Marko Gaćeša 2024-09-16 11:20:59 +00:00 committed by Harness
parent 62f27bb816
commit 934b3e8e5a

View File

@ -1415,7 +1415,7 @@ func repoOperations(reflector *openapi3.Reflector) {
_ = reflector.SetRequest(&opRebaseBranch, &struct {
repoRequest
repo.RebaseInput
}{}, http.MethodPatch)
}{}, http.MethodPost)
_ = reflector.SetJSONResponse(&opRebaseBranch, new(types.RebaseResponse), http.StatusOK)
_ = reflector.SetJSONResponse(&opRebaseBranch, new(usererror.Error), http.StatusBadRequest)
_ = reflector.SetJSONResponse(&opRebaseBranch, new(usererror.Error), http.StatusInternalServerError)