'GET /api/groups
Return a list of dictionaries that contain information about each Group.
:param deleted: flag used to include deleted groups
Example: GET localhost:9009/api/groups'

@expose_api_anonymous_and_sessionless
def index(self, trans, deleted=False, **kwd):

    group_dicts = []
    deleted = util.asbool(deleted)
    if (deleted and (not trans.user_is_admin())):
        raise AdminRequiredException('Only    administrators    can    query    deleted    groups.')
    for group in self.group_manager.list(trans, deleted):
        group_dicts.append(self._populate(trans, group))
    return group_dicts
