Skip to content

Post method for api/jobs #28

Open
Open
@janash

Description

@janash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions