Document GetWatchedProjects / PostWatchProjects / DeleteWatchedProjects

Change-Id: I1e295825ca937851d7bfbca824a3d94b90aa5a20
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-12-27 14:30:37 +01:00
committed by David Pursehouse
parent 03f0f9ac3b
commit c64db167af
3 changed files with 18 additions and 0 deletions

View File

@@ -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>> {

View File

@@ -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;

View File

@@ -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>> {