diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-12-02 07:02:04 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-12-02 07:02:04 +0300 |
commit | 71ba28e43967b5eaf0499c2a93c0b1d4f78a35f5 (patch) | |
tree | 76e383b555a589cc76645ec423a516cc1e186219 /changelogs | |
parent | 994530270899ae904fbf5a77b602990b8cd79c67 (diff) | |
parent | d757247247ea6015d560eacd29ec7be564e332bf (diff) |
Merge branch '4269-public-api' into 'master'
Allow public access to some Project API endpoints
## What does this MR do?
This opens up a few endpoints in the Project API:
- `GET /projects/visible` (returns public projects only)
- `GET /projects/search/:query` (returns results only for public projects)
- `GET /projects/:id` (only if the project is public)
- `GET /projects/:id/events` (only if the project is public)
- `GET /projects/:id/users` (only if the project is public)
## Are there points in the code the reviewer needs to double check?
I've chosen to explicitly add `authenticate!` to GET methods that still need a current user.
## Does this MR meet the acceptance criteria?
- [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
- [x] Added for this feature/bug
- [ ] All builds are passing
Part of #4269
See merge request !7843
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/4269-public-api.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/4269-public-api.yml b/changelogs/unreleased/4269-public-api.yml new file mode 100644 index 00000000000..560bc6a4f13 --- /dev/null +++ b/changelogs/unreleased/4269-public-api.yml @@ -0,0 +1,4 @@ +--- +title: Allow public access to some Project API endpoints +merge_request: 7843 +author: |