src/Controller/TaskRunnerController.php
public function getTasksAction()
    {
        $tasks = [];
        $list  = $this->getTensideTasks();
        foreach ($list->getIds() as $taskId) {
            $tasks[$taskId] = $this->convertTaskToArray($list->getTask($taskId));
        }

        return $this->createJsonResponse($tasks, true);
    }
public function getTasksAction()
    {
        $tasks = [];
        $list  = $this->getTensideTasks();
        foreach ($list->getIds() as $taskId) {
            $tasks[$taskId] = $this->convertTaskToArray($list->getTask($taskId));
        }

        return $this->createJsonResponse($tasks, true);
    }
public function getTasksAction ( ) { $ tasks = [ ] ; $ list = $ this -> getTensideTasks ( ) ; foreach ( $ list -> getIds ( ) as $ taskId ) { $ tasks [ $ taskId ] = $ this -> convertTaskToArray ( $ list -> getTask ( $ taskId ) ) ; } return $ this -> createJsonResponse ( $ tasks , true ) ; }
Retrieve the task list.

@return JsonResponse

@ApiDoc(
section="tasks",
statusCodes = {
200 = "When everything worked out ok"
},
authentication = true,
authenticationRoles = {
"ROLE_MANIPULATE_REQUIREMENTS"
},
)
@ApiDescription(
response={
"status" = {
"dataType" = "string",
"description" = "OK on success"
},
"tasks" = {
"id" = {
"dataType" = "string",
"description" = "The task id."
},
"status" = {
"dataType" = "string",
"description" = "The task status."
},
"type" = {
"dataType" = "string",
"description" = "The type of the task."
},
"created_at" = {
"dataType" = "string",
"description" = "The date the task was created in ISO 8601 format."
},
"user_data" = {
"dataType" = "object",
"description" = "The user submitted additional data."
}
}
}
)
Retrieve the task list .