opscode/supermarket — pull request #738 by brettchalupa (2014-08-11 21:06:01+00:00)
Title: Create the public User show API.

A user and their related cookbooks can be viewed via the API by issuing a GET
request to /api/v1/users/:username.

Example:

GET /api/v1/users/opscode

This returns the user, quite a bit of their data on their record and the
cookbooks they are associated with (owns, collaborates, follows). This does not
include Tools because there is no API available for them at this time.

Note: the GitHub accounts are an array because a user may have more than one
connected GitHub account.

What the blob looks like:

``` json
{
"username": "brettchalupa",
"name": "Brett Chalupa",
"company": "FullStack",
"github": [
"brettchalupa"
],
"twitter": "brettchalupa",
"irc": "",
"jira": "",
"cookbooks": {
"owns": {
"redis": "http://localhost:3000/api/v1/cookbooks/redis"
},
"collaborates": {},
"follows": {
"haskell": "http://localhost:3000/api/v1/cookbooks/haskell",
"mysql": "http://localhost:3000/api/v1/cookbooks/mysql",
"yum": "http://localhost:3000/api/v1/cookbooks/yum"
}
}
}
```

Closes #545