aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
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 /templates/swagger
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 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 90a76643dd..b8f81bb8f7 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -7834,6 +7834,47 @@
"$ref": "#/responses/notFound"
}
}
+ },
+ "delete": {
+ "tags": [
+ "repository"
+ ],
+ "summary": "Delete a release tag",
+ "operationId": "repoDeleteReleaseTag",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "owner of the repo",
+ "name": "owner",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repo",
+ "name": "repo",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the tag to delete",
+ "name": "tag",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "204": {
+ "$ref": "#/responses/empty"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
+ },
+ "409": {
+ "$ref": "#/responses/conflict"
+ }
+ }
}
},
"/repos/{owner}/{repo}/releases/{id}": {
@@ -16249,6 +16290,9 @@
"$ref": "#/definitions/WatchInfo"
}
},
+ "conflict": {
+ "description": "APIConflict is a conflict empty response"
+ },
"empty": {
"description": "APIEmpty is an empty response"
},