'GET /api/visualizations/{viz_id}'

@expose_api
def show(self, trans, id, **kwargs):

    rval = {}
    visualization = self.get_visualization(trans, id, check_ownership=False, check_accessible=True)
    dictionary = trans.security.encode_dict_ids(self.get_visualization_dict(visualization))
    dictionary['url'] = web.url_for(controller='visualization', action='display_by_username_and_slug', username=visualization.user.username, slug=visualization.slug)
    dictionary['annotation'] = self.get_item_annotation_str(trans.sa_session, trans.user, visualization)
    encoded_revisions = []
    for revision in dictionary['revisions']:
        encoded_revisions.append(trans.security.encode_id(revision))
    dictionary['revisions'] = encoded_revisions
    dictionary['latest_revision'] = trans.security.encode_dict_ids(dictionary['latest_revision'])
    rval = dictionary
    return rval
