Task List State Endpoint

Endpoint should be created to get a task list status. It returns a json containing all the tasks with their unique IDs and their individual status e.g. created, pending, done, failed. The status of the whole task list is calculated based on the statuses of the individual tasks and is returned as an http status code e.g. done: 200, waiting: 202, failed = 207

/v1/taskListResult/{taskListID}

Example done result:

{
  "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
  "groups": [
    {
      "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
      "type": "sequential",
      "status": "done",
      "tasks": [
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "done"
        },
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "done"
        }
      ]
    }
  ]
}

HTTP response code - 200

Example failed repsponse:

{
  "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
  "groups": [
    {
      "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
      "type": "sequential",
      "status": "failed",
      "tasks": [
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "done"
        },
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "failed"
        }
      ]
    }
  ]
}

HTTP response code - 207

Example pending response:

{
  "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
  "groups": [
    {
      "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
      "type": "sequential",
      "status": "pending",
      "tasks": [
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "done"
        },
        {
          "id": "ad641603-1ca0-4342-ad73-d70a6b1ec502",
          "status": "pending"
        }
      ]
    }
  ]
}

HTTP response code - 202