aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-10-30 20:56:34 -0500
committerGitHub <noreply@github.com>2020-10-30 20:56:34 -0500
commitb5e974c8a5a90e7c166792d03d97f2ea5b6cfba6 (patch)
treec51509fa18331af3ac8ec15e612958fb2e456d6c /modules/context
parente16a5bb6346642a16ea31e7a7eb312c2594513cc (diff)
downloadgitea-b5e974c8a5a90e7c166792d03d97f2ea5b6cfba6.tar.gz
gitea-b5e974c8a5a90e7c166792d03d97f2ea5b6cfba6.zip
Delete tag API (#13358)
* Delete tag API Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add conflict response and fix API tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix other test Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go
index 772e1f8f50..9dad588c7f 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -61,6 +61,10 @@ type APIForbiddenError struct {
// swagger:response notFound
type APINotFound struct{}
+//APIConflict is a conflict empty response
+// swagger:response conflict
+type APIConflict struct{}
+
//APIRedirect is a redirect response
// swagger:response redirect
type APIRedirect struct{}