예제 #1
0
def by_name(dataset):
    dataset = Dataset.find(dataset)
    name = request.args.get('name')
    entity = object_or_404(Entity.by_name(dataset, name))
    return jsonify(entity)
예제 #2
0
def by_name(dataset):
    dataset = Dataset.find(dataset)
    name = request.args.get('name')
    entity = object_or_404(Entity.by_name(dataset, name))
    return jsonify(entity)
예제 #3
0
def view(id):
    entity = object_or_404(Entity.by_id(id))
    return jsonify(entity)
예제 #4
0
def view(id):
    entity = object_or_404(Entity.by_id(id))
    return jsonify(entity)