Commit a0e16549 authored by Zdralovic Edim's avatar Zdralovic Edim

added error handling

parent 47d82d27
......@@ -64,9 +64,7 @@ class CWLRestAPI(FlaskView):
#Section: Routed Methods
############################################################
def index(self): #route_base
return """
<h2>The service is available.</h2>
"""
return jsonify(message="Service is running", status_code="200")
@route('/workflows', methods=['POST'])
def postWorkflow(self):
......
......@@ -17,7 +17,7 @@ curl -d \
'{"workflowName":"myHornyWorkflow", "usertoken": "hornyBoi", "sharedStoragePath": "/home/cuhoni66/toilCWLTest/"}' \
-H "Content-Type: application/json" -X POST http://localhost:5000/workflows
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://localhost:5000/workflows/user/hornyBoi
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://localhost:5000/workflows/myHornyWorkflow
toil-cwl-runner --debugWorker --outdir=/home/cuhoni66/Schreibtisch/dot/data/outdir/ --workDir=/home/cuhoni66/Schreibtisch/dot/data/workdir/ --jobStore=/home/cuhoni66/Schreibtisch/dot/data/jobStore/ --singularity ex3.cwl ex2.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment