Document AddSshKey / DeleteSshKey classes
Change-Id: Id33fa552bfc371a8801004a2333711f82b4c9dc7 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:

committed by
David Pursehouse

parent
2b9f4256ed
commit
793939a947
@@ -44,6 +44,11 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
|
||||
/**
|
||||
* REST endpoint to add an SSH key for an account.
|
||||
*
|
||||
* <p>This REST endpoint handles {@code POST /accounts/<account-identifier>/sshkeys/} requests.
|
||||
*/
|
||||
@Singleton
|
||||
public class AddSshKey
|
||||
implements RestCollectionModifyView<AccountResource, AccountResource.SshKey, SshKeyInput> {
|
||||
|
@@ -36,6 +36,12 @@ import java.io.IOException;
|
||||
import org.eclipse.jgit.errors.ConfigInvalidException;
|
||||
import org.eclipse.jgit.errors.RepositoryNotFoundException;
|
||||
|
||||
/**
|
||||
* REST endpoint to delete an SSH key of an account.
|
||||
*
|
||||
* <p>This REST endpoint handles {@code DELETE
|
||||
* /accounts/<account-identifier>/sshkeys/<ssh-key-identifier>} requests.
|
||||
*/
|
||||
@Singleton
|
||||
public class DeleteSshKey implements RestModifyView<AccountResource.SshKey, Input> {
|
||||
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
|
||||
|
Reference in New Issue
Block a user