def METHOD_NAME(snap_name, revision):
    """
    Return JSON object from the publisher API
    """
    revision = publisher_api.get_snap_revision(
        flask.session, snap_name, revision
    )
    return flask.jsonify(revision)