@get('/s/sets/{set_id}')
def get_set_route(request, set_id):

    db_conn = request['db_conn']
    set_ = Set.get_latest_accepted(db_conn, set_id)
    if not set_:
        return abort(404)

    # TODO-2 SPLITUP create new endpoints for these instead
    topics = Topic.list_by_entity_id(db_conn, entity_id=set_id)
    versions = Set.get_versions(db_conn, entity_id=set_id)
    units = set_.list_units(db_conn)

    return 200, {
        'set': set_.deliver(),
        # 'set_parameters': set_.fetch_parameters(),
        'topics': [topic.deliver() for topic in topics],
        'versions': [version.deliver() for version in versions],
        'units': [unit.deliver() for unit in units],
    }
Get a specific set given an ID.
dataset/ETHPy150Open heiskr/sagefy/server/routes/set.py/get_set_route