Open
Description
Job must be submitted with title or correct response is not returned from API (job is still added despite response status).
Example:
"path": "/Users/username/seamm/projects/username/Job000053",
"username": "jessica",
"flowchart": "abcd",
"project": "MyProject",
"title": "None"
}
Returns a json with job id:
{
"id": 4
}
However without title:
{
"path": "/Users/username/seamm/projects/username/Job000053",
"username": "jessica",
"flowchart": "abcd",
"project": "MyProject"
}
an error message is returned:
Response code : 500
File "/Users/jessica/seamm/seamm_dashboard/app/routes/api/jobs.py", line 254, in add_job
'title': body['title'],
KeyError: 'title'
BUT, the job is still added to the DB.