Added DELETE/POST endpoint for watched projects

Added DELETE and POST endpoints for removing,
adding and updating watched projects. This is an
effort towards migrating to PolyGerrit UI.

Change-Id: I6203af9ed0fd6448fc1395512bc3ffdca93c5c18
This commit is contained in:
Patrick Hiesel
2016-04-28 10:51:47 +02:00
committed by Edwin Kempin
parent e56cf3af23
commit bed6d98869
8 changed files with 514 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ public class Module extends RestApiModule {
child(ACCOUNT_KIND, "sshkeys").to(SshKeys.class);
post(ACCOUNT_KIND, "sshkeys").to(AddSshKey.class);
get(ACCOUNT_KIND, "watched.projects").to(GetWatchedProjects.class);
post(ACCOUNT_KIND, "watched.projects").to(PostWatchedProjects.class);
post(ACCOUNT_KIND, "watched.projects:delete")
.to(DeleteWatchedProjects.class);
get(SSH_KEY_KIND).to(GetSshKey.class);
delete(SSH_KEY_KIND).to(DeleteSshKey.class);