Document GetSshKey / GetSshKeys classes

Change-Id: I4724b32d63dfa37ae6ede945f00c74df2bf094cf
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-12-27 14:17:43 +01:00
committed by David Pursehouse
parent 4f07e3c8ee
commit 275fe3e123
2 changed files with 11 additions and 0 deletions

View File

@@ -21,6 +21,12 @@ import com.google.gerrit.server.account.AccountResource;
import com.google.gerrit.server.account.AccountResource.SshKey;
import com.google.inject.Singleton;
/**
* REST endpoint to get an SSH key of an account.
*
* <p>This REST endpoint handles {@code GET
* /accounts/<account-identifier>/sshkeys/<ssh-key-identifier>} requests.
*/
@Singleton
public class GetSshKey implements RestReadView<AccountResource.SshKey> {

View File

@@ -36,6 +36,11 @@ import java.util.List;
import org.eclipse.jgit.errors.ConfigInvalidException;
import org.eclipse.jgit.errors.RepositoryNotFoundException;
/**
* REST endpoint to list the SSH keys of an account.
*
* <p>This REST endpoint handles {@code GET /accounts/<account-identifier>/sshkeys/} requests.
*/
@Singleton
public class GetSshKeys implements RestReadView<AccountResource> {