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.
Acceptance criteria
Once a number of jobs are submitted with different labels attached (see Wiki page), the user can call the
getjobs
handler with alabel
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.