summaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorJohan Van de Wauw <johan@gisky.be>2020-09-25 21:11:43 +0200
committerGitHub <noreply@github.com>2020-09-25 21:11:43 +0200
commit34d9cb335c08da785b90acb2c1001b93218f6ac2 (patch)
tree71ad09ed927a79b891b857e97d4e43e506a6763d /templates/swagger
parent[Docs] Add all chooseable cron config options to 'app.example.ini' (#12931) (diff)
downloadforgejo-34d9cb335c08da785b90acb2c1001b93218f6ac2.tar.xz
forgejo-34d9cb335c08da785b90acb2c1001b93218f6ac2.zip
API: Get release by tags endpoint (#12932)
Get a release based on a tag name (for which a release exists). Based on: https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name Co-authored-by: 赵智超 <1012112796@qq.com> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl43
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 51a618ae4d..e54f40d670 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -7685,6 +7685,49 @@
}
}
},
+ "/repos/{owner}/{repo}/releases/tags/{tag}": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "repository"
+ ],
+ "summary": "Get a release by tag name",
+ "operationId": "repoGetReleaseTag",
+ "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": "tagname of the release to get",
+ "name": "tag",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/Release"
+ },
+ "404": {
+ "$ref": "#/responses/notFound"
+ }
+ }
+ }
+ },
"/repos/{owner}/{repo}/releases/{id}": {
"get": {
"produces": [