diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-12-22 07:17:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 06:17:33 +0000 |
commit | a9ed1c5c7c6c85ae280e6a13ca0d4e665945efb4 (patch) | |
tree | 71334ceee5297ae364184df9f5c671264b558214 /templates/swagger | |
parent | d155ffc610403819b772b3eac2a88d26d364d048 (diff) | |
download | gitea-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.tmpl | 8 |
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" } |