aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-09 00:15:47 +0000
committerGitHub <noreply@github.com>2021-02-09 01:15:47 +0100
commitb337c606d3669b3e2f9b805d6c74b593d6271414 (patch)
treeb13f8541258dd11a296169c69f897407bdcf70bf /templates/swagger/v1_json.tmpl
parent758627cf8f3f32681bf792b3a6b9f74572210d89 (diff)
downloadgitea-b337c606d3669b3e2f9b805d6c74b593d6271414.tar.gz
gitea-b337c606d3669b3e2f9b805d6c74b593d6271414.zip
Add support for ref parameter to get raw file API (#14602)
Fix #14597 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 45f396f283..28aa617799 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -7845,6 +7845,12 @@
"name": "filepath",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "description": "The name of the commit/branch/tag. Default the repository’s default branch (usually master)",
+ "name": "ref",
+ "in": "query"
}
],
"responses": {