예제 #1
0
def preview():
    image_spec = image_spec_factory.create(json.loads(request.values['image']))
    image_preview = image_spec.preview()
    return Response(json.dumps(image_preview), mimetype='application/json')
예제 #2
0
파일: server.py 프로젝트: openforis/sepal
def preview():
    image_spec = image_spec_factory.create(json.loads(request.values['image']))
    image_preview = image_spec.preview()
    return Response(json.dumps(image_preview), mimetype='application/json')
예제 #3
0
파일: server.py 프로젝트: sarahwertz/sepal
def preview():
    image_spec = image_spec_factory.create(request.get_json())
    image_preview = image_spec.preview()
    return Response(json.dumps(image_preview), mimetype='application/json')
예제 #4
0
def download():
    image = image_spec_factory.create(json.loads(request.values['image']))
    taskId = image.download(request.values['name'], username, downloader)
    return Response(taskId, mimetype='text/plain')
예제 #5
0
def download():
    image = image_spec_factory.create(json.loads(request.values['image']))
    taskId = image.download(request.values['name'], username, downloader)
    return Response(taskId, mimetype='text/plain')