'GET /api/groups/{encoded_group_id}
Displays information about a group.'

@web.expose_api
@web.require_admin
def show(self, trans, id, **kwd):

    group_id = id
    try:
        decoded_group_id = trans.security.decode_id(group_id)
    except TypeError:
        trans.response.status = 400
        return ('Malformed    group    id    (    %s    )    specified,    unable    to    decode.' % str(group_id))
    try:
        group = trans.sa_session.query(trans.app.model.Group).get(decoded_group_id)
    except:
        group = None
    if (not group):
        trans.response.status = 400
        return ('Invalid    group    id    (    %s    )    specified.' % str(group_id))
    item = group.to_dict(view='element', value_mapper={'id': trans.security.encode_id})
    item['url'] = url_for('group', id=group_id)
    item['users_url'] = url_for('group_users', group_id=group_id)
    item['roles_url'] = url_for('group_roles', group_id=group_id)
    return item
