Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

List user's keys #78

Merged
merged 2 commits into from
Apr 18, 2013
Merged

List user's keys #78

merged 2 commits into from
Apr 18, 2013

Conversation

rochacon
Copy link
Contributor

Hi. I couldn't sleep so I thought I should be doing something useful. 馃槃

This branch tries to add a new API handler to list a user keys (as requested in #9). Here are some things to consider:

  • Currently the keys listed are those retrieved from the DB, is this good enough? Any need to check the authorized_keys file for listing?
  • The URL that I chose was /user/:username/keys, is that a good one?
  • Still needs to be properly documented

Here is an example of a response:

curl -i 127.0.0.1:8000/user/rochacon/keys
HTTP/1.1 200 OK
Date: Thu, 18 Apr 2013 06:58:39 GMT
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

{"gandalf":"ssh-rsa gandalf is@awesome","golang":"ssh-rsa golang rocks@globocom"}

@flavianmissi
Copy link
Contributor

Hi,

Everything seems great, thank you for the contribution!

flavianmissi added a commit that referenced this pull request Apr 18, 2013
@flavianmissi flavianmissi merged commit 28e9b3d into tsuru:master Apr 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants