ukaea / piezo

1 stars 0 forks source link

User can get names of all jobs with a given label #64

Closed robert-clegg-tessella closed 5 years ago

robert-clegg-tessella commented 5 years ago

Acceptance criteria

Once a number of jobs are submitted with different labels attached (see Wiki page), the user can call the getjobs handler with a label argument in the body. The response should contain the name and status of all jobs that share this label.

If no label is given when calling getjobs, then all jobs are returned.

If no jobs match the label given to getjobs then an empty array is returned.