lshift/diffa — pull request #35 by aprescott (2012-02-14 17:34:04+00:00)
Title: Expose a user's domain memberships in the API.

guest user with no members:

```bash
$ curl -u guest:guest \
http://localhost:19093/diffa-agent/rest/security/users/guest/memberships
[]
```

Add a membership for the diffa domain:

```bash
$ curl -X POST -u guest:guest \
http://localhost:19093/diffa-agent/rest/diffa/config/members/guest
```

Membership listed for the guest user

```bash
$ curl -u guest:guest \
http://localhost:19093/diffa-agent/rest/security/users/guest/memberships
[{"name":"diffa"}]
```