diff options
author | zeripath <art27@cantab.net> | 2021-02-09 01:15:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 01:15:47 +0100 |
commit | b337c606d3669b3e2f9b805d6c74b593d6271414 (patch) | |
tree | b13f8541258dd11a296169c69f897407bdcf70bf /templates/swagger | |
parent | Fixed irritating error message related to go version (#14611) (diff) | |
download | forgejo-b337c606d3669b3e2f9b805d6c74b593d6271414.tar.xz forgejo-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')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 6 |
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": { |