Support adding an SSH key via REST
By POST on /accounts/<account-id>/sshkeys it is now possible to add an SSH key for a user. The SSH public key has to be provided as raw content in the request body. The WebUI is adapted to use the new REST endpint to add SSH keys. The old RPC for this is deleted. Change-Id: I9617ccf19f078f9bcee615803755f445ed68bdc9 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
Edwin Kempin
parent
1e85b1ec3f
commit
4e2e5216f9
@@ -51,6 +51,7 @@ public class Module extends RestApiModule {
|
||||
put(ACCOUNT_KIND, "password.http").to(PutHttpPassword.class);
|
||||
delete(ACCOUNT_KIND, "password.http").to(PutHttpPassword.class);
|
||||
child(ACCOUNT_KIND, "sshkeys").to(SshKeys.class);
|
||||
post(ACCOUNT_KIND, "sshkeys").to(AddSshKey.class);
|
||||
get(SSH_KEY_KIND).to(GetSshKey.class);
|
||||
get(ACCOUNT_KIND, "avatar").to(GetAvatar.class);
|
||||
get(ACCOUNT_KIND, "avatar.change.url").to(GetAvatarChangeUrl.class);
|
||||
|
||||
Reference in New Issue
Block a user