From 335f951e6b59f7e3f1177bb29481e31d3c02d2f5 Mon Sep 17 00:00:00 2001 From: sunportainer <93502624+sunportainer@users.noreply.github.com> Date: Thu, 2 Dec 2021 14:54:38 +1300 Subject: [PATCH] Fix(stack)/update StackUpdateGit swagger info to POST EE-2019 (#6176) * fix/EE-2019/Fix-stackgitupdate-swagger Co-authored-by: sunportainer --- api/http/handler/stacks/stack_update_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/stacks/stack_update_git.go b/api/http/handler/stacks/stack_update_git.go index fe01c51e9..787b43d87 100644 --- a/api/http/handler/stacks/stack_update_git.go +++ b/api/http/handler/stacks/stack_update_git.go @@ -54,7 +54,7 @@ func (payload *stackGitUpdatePayload) Validate(r *http.Request) error { // @failure 403 "Permission denied" // @failure 404 "Not found" // @failure 500 "Server error" -// @router /stacks/{id}/git [put] +// @router /stacks/{id}/git [post] func (handler *Handler) stackUpdateGit(w http.ResponseWriter, r *http.Request) *httperror.HandlerError { stackID, err := request.RetrieveNumericRouteVariableValue(r, "id") if err != nil {