Document GetSshKey / GetSshKeys classes
Change-Id: I4724b32d63dfa37ae6ede945f00c74df2bf094cf Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
committed by
David Pursehouse
parent
4f07e3c8ee
commit
275fe3e123
@@ -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> {
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user