'.. http:get:: /api/1/roles
Get a list of roles, checking that the requester is an admin.
**Example Request**:
.. sourcecode:: http
GET /api/1/roles HTTP/1.1
Host: example.com
Accept: application/json
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
"auth": {
"authenticated": true,
"administrator": true,
"user": "user@example.com"
"roles": [
"id": 1,
"name": "admin",
"description": "Administrators"
:statuscode 200: no error
:statuscode 401: Authentication Error. Please ensure you have administrator rights.'

def get(self):

    return_dict = {'auth': self.auth_dict}
    roles = []
    for name in RBACRole.roles:
        roles.append({'name': RBACRole.roles[name].name})
    return_dict['roles'] = roles
    return (return_dict, 200)
