'GET /api/users
Returns a list of dictionaries that contain information about each user.'

@web.expose_api_anonymous
def index(self, trans, deleted=False, **kwd):

    user_dicts = []
    deleted = util.asbool(deleted)
    for user in trans.sa_session.query(trans.app.model.User).filter((trans.app.model.User.table.c.deleted == deleted)).order_by(trans.app.model.User.table.c.username):
        user_dict = user.to_dict(view='collection', value_mapper=self.__get_value_mapper(trans))
        user_dict['url'] = web.url_for(controller='users', action='show', id=trans.security.encode_id(user.id))
        user_dicts.append(user_dict)
    return user_dicts
