Document GetWatchedProjects / PostWatchProjects / DeleteWatchedProjects
Change-Id: I1e295825ca937851d7bfbca824a3d94b90aa5a20 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:

committed by
David Pursehouse

parent
03f0f9ac3b
commit
c64db167af
@@ -39,6 +39,12 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
|
||||
/**
|
||||
* REST endpoint to delete project watches from an account.
|
||||
*
|
||||
* <p>This REST endpoint handles {@code POST /accounts/<account-identifier>/watched.projects:delete}
|
||||
* requests.
|
||||
*/
|
||||
@Singleton
|
||||
public class DeleteWatchedProjects
|
||||
implements RestModifyView<AccountResource, List<ProjectWatchInfo>> {
|
||||
|
@@ -41,6 +41,12 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
|
||||
/**
|
||||
* REST endpoint to get the project watches of an account.
|
||||
*
|
||||
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/watched.projects}
|
||||
* requests.
|
||||
*/
|
||||
@Singleton
|
||||
public class GetWatchedProjects implements RestReadView<AccountResource> {
|
||||
private final PermissionBackend permissionBackend;
|
||||
|
@@ -41,6 +41,12 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
|
||||
/**
|
||||
* REST endpoint to set project watches for an account.
|
||||
*
|
||||
* <p>This REST endpoint handles {@code POST /accounts/<account-identifier>/watched.projects}
|
||||
* requests.
|
||||
*/
|
||||
@Singleton
|
||||
public class PostWatchedProjects
|
||||
implements RestModifyView<AccountResource, List<ProjectWatchInfo>> {
|
||||
|
Reference in New Issue
Block a user