Added /projects/name/access as REST endpoint. Implemented GET.

We currently use RPC to view and edit access for projects. In an effort
to migrate to polygerrit this has to be ported to REST.

While the current /access endpoint is purely intended for listing access
rights for multiple (or a single) projects, what we want to
accomplish here is to have an API in place to change the access rights
for one project. As a first step I have implemented the
/projects/name/access endpoint as a way of GETing access rights for
a project. I'm currently writing logic to POST/change access rights
under the same endpoint in a different change set.
Having the GET implemented here is just a matter of consistency.

Change-Id: I5cc621ba28dc14bea15ae8e7a78a5ad3d0846c43
This commit is contained in:
Patrick Hiesel
2016-04-21 11:44:29 +02:00
parent 8a867d6414
commit 5a3475fe4b
15 changed files with 589 additions and 249 deletions

View File

@@ -42,6 +42,7 @@ public class Module extends RestApiModule {
put(PROJECT_KIND).to(PutProject.class);
get(PROJECT_KIND).to(GetProject.class);
get(PROJECT_KIND, "description").to(GetDescription.class);
get(PROJECT_KIND, "access").to(GetAccess.class);
put(PROJECT_KIND, "description").to(PutDescription.class);
delete(PROJECT_KIND, "description").to(PutDescription.class);