'index( self, trans, **kwd )
* GET /api/libraries:
Returns a list of summary data for all libraries.
:param  deleted: if True, show only ``deleted`` libraries, if False show only ``non-deleted``
:type   deleted: boolean (optional)
:returns:   list of dictionaries containing library information
:rtype:     list
.. seealso:: :attr:`galaxy.model.Library.dict_collection_visible_keys`'

@expose_api_anonymous
def index(self, trans, **kwd):

    deleted = util.string_as_bool_or_none(kwd.get('deleted', None))
    query = self.library_manager.list(trans, deleted)
    libraries = []
    for library in query:
        libraries.append(self.library_manager.get_library_dict(trans, library))
    return libraries
