From f2d55a9f05f5df7960d7f6dd37d1ef96c762d65a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 8 Aug 2021 15:33:22 +0200 Subject: Added a tree commit history API endpoint --- docs_src/API/v1/repos.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'docs_src/API') 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:**
-Retrieves a repository tree. +Retrieves a repository's tree. **Parameters:**
@@ -60,6 +60,29 @@ Retrieves a repository tree.
+## /repos/:repo/tree/history +**Method:** GET + +**Description:**
+Retrieves a tree entry's commit history. + +**Parameters:**
+ +| 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:**
+ +| 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) | + +
+ ## /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) | -- cgit v1.2.3-18-g5258