aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>2021-12-22 07:17:33 +0100
committerGitHub <noreply@github.com>2021-12-22 06:17:33 +0000
commita9ed1c5c7c6c85ae280e6a13ca0d4e665945efb4 (patch)
tree71334ceee5297ae364184df9f5c671264b558214 /templates/swagger
parentd155ffc610403819b772b3eac2a88d26d364d048 (diff)
downloadgitea-a9ed1c5c7c6c85ae280e6a13ca0d4e665945efb4.tar.gz
gitea-a9ed1c5c7c6c85ae280e6a13ca0d4e665945efb4.zip
Add API to get file commit history (#17652)
Adds an API endpoint `api/v1/repos/{owner}/{repo}/git/history/{filepath}` to get the commits affecting the given file or directory. Closes https://github.com/go-gitea/gitea/issues/16206 and closes https://github.com/go-gitea/gitea/issues/16703
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 751d77e6ff..b016ad22a2 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -2951,6 +2951,12 @@
"in": "query"
},
{
+ "type": "string",
+ "description": "filepath of a file/dir",
+ "name": "path",
+ "in": "query"
+ },
+ {
"type": "integer",
"description": "page number of results to return (1-based)",
"name": "page",
@@ -2958,7 +2964,7 @@
},
{
"type": "integer",
- "description": "page size of results",
+ "description": "page size of results (ignored if used with 'path')",
"name": "limit",
"in": "query"
}