diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-08 15:33:22 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-08 15:33:22 +0200 |
commit | f2d55a9f05f5df7960d7f6dd37d1ef96c762d65a (patch) | |
tree | 737a61da8603520f9afec553791a222f88bc4ff3 /docs_src/API/v1 | |
parent | 17c20d77600407209908de5541415f2c4a85f5e3 (diff) |
Added a tree commit history API endpoint
Diffstat (limited to 'docs_src/API/v1')
-rw-r--r-- | docs_src/API/v1/repos.md | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/docs_src/API/v1/repos.md b/docs_src/API/v1/repos.md index 9ddfc12..e5c24b9 100644 --- a/docs_src/API/v1/repos.md +++ b/docs_src/API/v1/repos.md @@ -41,7 +41,7 @@ Retrieves a repository. **Method:** GET **Description:**<br> -Retrieves a repository tree. +Retrieves a repository's tree. **Parameters:**<br> @@ -60,6 +60,29 @@ Retrieves a repository tree. <br> +## /repos/:repo/tree/history +**Method:** GET + +**Description:**<br> +Retrieves a tree entry's commit history. + +**Parameters:**<br> + +| Name | Location | Description | Required | Schema | +|--------|----------|------------------|----------|--------| +| repo | path | The repository | true | string | +| path | query | Path in the tree | true | string | +| branch | query | A branch | false | string | + +**Response:**<br> + +| Code | Description | Schema | +|---------|---------------------------------|---------------------------------------| +| 200 | The tree entry's commit history | [\[Commit\]](/docs/modules/api.html#Commit) | +| 400-599 | An error | [Error](/docs/modules/api.html#Error) | + +<br> + ## /repos/:repo/tags **Method:** GET @@ -164,4 +187,4 @@ Retrieves a branch from a repository. | Code | Description | Schema | |---------|-------------|--------------------------------------------| | 200 | A branch | [Branch](/docs/interfaces/api.Branch.html) | -| 400-599 | An error | [Error](/docs/modules/api.html#Error) |
\ No newline at end of file +| 400-599 | An error | [Error](/docs/modules/api.html#Error) | |