summaryrefslogtreecommitdiff
path: root/doc/api/branches.md
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-20 09:37:14 +0100
committerRémy Coutable <remy@rymai.me>2017-03-20 09:37:31 +0100
commitaaaee8ae277a94c64927d57e3ce283930938a766 (patch)
treeb3d8a84d13fcf1cb3d53c7bdd2f3900f35be91dd /doc/api/branches.md
parent691402fb2b361ba19db3b8bdf77b75e513883423 (diff)
downloadgitlab-ce-aaaee8ae277a94c64927d57e3ce283930938a766.tar.gz
Allow unauthenticated access to some Branch API GET endpoints
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r--doc/api/branches.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md
index 83705106160..815aabda8e3 100644
--- a/doc/api/branches.md
+++ b/doc/api/branches.md
@@ -3,6 +3,8 @@
## List repository branches
Get a list of repository branches from a project, sorted by name alphabetically.
+This endpoint can be accessed without authentication if the repository is
+publicly accessible.
```
GET /projects/:id/repository/branches
@@ -48,7 +50,8 @@ Example response:
## Get single repository branch
-Get a single project repository branch.
+Get a single project repository branch. This endpoint can be accessed without
+authentication if the repository is publicly accessible.
```
GET /projects/:id/repository/branches/:branch