summaryrefslogtreecommitdiff
path: root/doc/api/branches.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r--doc/api/branches.md23
1 files changed, 10 insertions, 13 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md
index bb2d3fec09d..f695b48fe2f 100644
--- a/doc/api/branches.md
+++ b/doc/api/branches.md
@@ -10,7 +10,7 @@ GET /projects/:id/repository/branches
Parameters:
-+ `id` (required) - The ID of a project
+- `id` (required) - The ID of a project
```json
[
@@ -52,8 +52,8 @@ GET /projects/:id/repository/branches/:branch
Parameters:
-+ `id` (required) - The ID of a project
-+ `branch` (required) - The name of the branch
+- `id` (required) - The ID of a project
+- `branch` (required) - The name of the branch
```json
{
@@ -82,7 +82,6 @@ Parameters:
}
```
-
## Protect repository branch
Protects a single project repository branch. This is an idempotent function, protecting an already
@@ -94,8 +93,8 @@ PUT /projects/:id/repository/branches/:branch/protect
Parameters:
-+ `id` (required) - The ID of a project
-+ `branch` (required) - The name of the branch
+- `id` (required) - The ID of a project
+- `branch` (required) - The name of the branch
```json
{
@@ -124,7 +123,6 @@ Parameters:
}
```
-
## Unprotect repository branch
Unprotects a single project repository branch. This is an idempotent function, unprotecting an already
@@ -136,8 +134,8 @@ PUT /projects/:id/repository/branches/:branch/unprotect
Parameters:
-+ `id` (required) - The ID of a project
-+ `branch` (required) - The name of the branch
+- `id` (required) - The ID of a project
+- `branch` (required) - The name of the branch
```json
{
@@ -168,16 +166,15 @@ Parameters:
## Create repository branch
-
```
POST /projects/:id/repository/branches
```
Parameters:
-+ `id` (required) - The ID of a project
-+ `branch_name` (required) - The name of the branch
-+ `ref` (required) - Create branch from commit sha or existing branch
+- `id` (required) - The ID of a project
+- `branch_name` (required) - The name of the branch
+- `ref` (required) - Create branch from commit sha or existing branch
```json
{