'GET /api/categories/{encoded_category_id}/repositories
Return information about the provided category and the repositories in that category.
:param id: the encoded id of the Category object
Example: GET localhost:9009/api/categories/f9cad7b01a472135/repositories'

@expose_api_anonymous_and_sessionless
def get_repositories(self, trans, category_id, **kwd):

    installable = util.asbool(kwd.get('installable', 'false'))
    category = suc.get_category(self.app, category_id)
    if (category is None):
        category_dict = dict(message=('Unable    to    locate    category    record    for    id    %s.' % str(id)), status='error')
        return category_dict
    category_dict = category.to_dict(view='element', value_mapper=self.__get_value_mapper(trans))
    category_dict['url'] = web.url_for(controller='categories', action='show', id=trans.security.encode_id(category.id))
    repositories = repository_util.get_repositories_by_category(self.app, category.id, installable=installable)
    category_dict['repositories'] = repositories
    return category_dict
