Document AddSshKey / DeleteSshKey classes

Change-Id: Id33fa552bfc371a8801004a2333711f82b4c9dc7
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-12-27 15:04:16 +01:00
committed by David Pursehouse
parent 2b9f4256ed
commit 793939a947
2 changed files with 11 additions and 0 deletions

View File

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

View File

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