summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-03-20 10:58:25 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-03-20 10:58:25 +0000
commit359caf2b2bc354f7a56b1447f7798f787653ab57 (patch)
treeb3d8a84d13fcf1cb3d53c7bdd2f3900f35be91dd /doc/api
parent691402fb2b361ba19db3b8bdf77b75e513883423 (diff)
parentaaaee8ae277a94c64927d57e3ce283930938a766 (diff)
downloadgitlab-ce-359caf2b2bc354f7a56b1447f7798f787653ab57.tar.gz
Merge branch '29662-allow-unauthenticated-branches-api' into 'master'
Allow unauthenticated access to some Branch API GET endpoints Closes #29662 See merge request !10077
Diffstat (limited to 'doc/api')
-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