diff options
author | Timm Friebe <thekid@thekid.de> | 2014-04-15 16:39:46 +0200 |
---|---|---|
committer | Timm Friebe <thekid@thekid.de> | 2014-04-18 14:16:19 +0200 |
commit | 05e792b4c492e04aaa7e301432f71e01d63c02bc (patch) | |
tree | cafed848f51b017459a8bb4a2e5c0f003c3c8fa2 /doc/api/users.md | |
parent | cd6232187b707b0a278bd91986ec85dcfe66046f (diff) | |
download | gitlab-ce-05e792b4c492e04aaa7e301432f71e01d63c02bc.tar.gz |
Implement GET /users/:uid/keys for admin users
Complements POST operation added in gitlabhq/gitlabhq#3146
Implement DELETE /users/:uid/keys/:id for admin users
Fix "Line is too long. [83/80]"
Use single quotes as advised
Use single quotes as advised
Use single quotes as advised
Fix missing space around { and }
Fix typo in documentation
Only catch ActiveRecord::RecordNotFound, let other exceptions propagate
Raise a "404 Not found" if key to be deleted cannot be found
As requested by @jvanbaarsen in https://github.com/gitlabhq/gitlabhq/pull/6781#discussion_r11735114
Remove tab
Unconfigured vim on this box, grrrr./
Diffstat (limited to 'doc/api/users.md')
-rw-r--r-- | doc/api/users.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index 2d5dedb3a39..2b927c30777 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -220,6 +220,18 @@ Parameters: + **none** +## List SSH keys for user + +Get a list of a specified user's SSH keys. Available only for admin + +``` +GET /users/:uid/keys +``` + +Parameters: + ++ `uid` (required) - id of specified user + ## Single SSH key @@ -286,3 +298,18 @@ Parameters: + `id` (required) - SSH key ID +## Delete SSH key + +Deletes key owned by a specified user. Available only for admin. + +``` +DELETE /users/:uid/keys/:id +``` + +Parameters: + ++ `uid` (required) - id of specified user ++ `id` (required) - SSH key ID + +Will return `200 Ok` on success, or `404 Not found` if either user or key cannot be found. + |