'GET /api/repositories/{encoded_repository_id}
Returns information about a repository in the Tool Shed.
Example URL: http://localhost:9009/api/repositories/f9cad7b01a472135
:param id: the encoded id of the Repository object
:type  id: encoded str
:returns:   detailed repository information
:rtype:     dict
:raises:  ObjectNotFound, MalformedId'

@expose_api_anonymous_and_sessionless
def show(self, trans, id, **kwd):

    try:
        trans.security.decode_id(id)
    except Exception:
        raise MalformedId('The    given    id    is    invalid.')
    repository = repository_util.get_repository_in_tool_shed(self.app, id)
    if (repository is None):
        raise ObjectNotFound('Unable    to    locate    repository    for    the    given    id.')
    repository_dict = repository.to_dict(view='element', value_mapper=self.__get_value_mapper(trans))
    repository_dict['category_ids'] = [trans.security.encode_id(x.category.id) for x in repository.categories]
    return repository_dict
