@@ -0,0 +1,1728 @@
+package de.unistuttgart.iste.rss.bugminer.api;%0A%0Aimport de.unistuttgart.iste.rss.bugminer.api.exceptions.NotFoundException;%0Aimport de.unistuttgart.iste.rss.bugminer.model.entities.Bug;%0Aimport de.unistuttgart.iste.rss.bugminer.model.entities.IssueTracker;%0Aimport de.unistuttgart.iste.rss.bugminer.model.entities.LineChange;%0Aimport de.unistuttgart.iste.rss.bugminer.model.entities.Project;%0Aimport de.unistuttgart.iste.rss.bugminer.model.repositories.BugRepository;%0Aimport de.unistuttgart.iste.rss.bugminer.model.repositories.IssueTrackerRepository;%0Aimport de.unistuttgart.iste.rss.bugminer.model.repositories.LineChangeRepository;%0Aimport de.unistuttgart.iste.rss.bugminer.model.repositories.ProjectRepository;%0Aimport de.unistuttgart.iste.rss.bugminer.tasks.Task;%0Aimport de.unistuttgart.iste.rss.bugminer.tasks.TaskManager;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.support.PagedListHolder;%0Aimport org.springframework.data.domain.Page;%0Aimport org.springframework.data.domain.Pageable;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport java.util.Collection;%0A%0A@RestController%0A@RequestMapping(value = %22/api%22)%0Apublic class TaskController %7B%0A%0A    public static final int BUG_LIST_PAGE_SIZE = 10;%0A%0A%09@Autowired%0A%09private TaskManager taskManager;%0A%0A%09protected TaskController() %7B%0A%09%09// managed bean%0A%09%7D%0A%0A%09/**%0A%09 * Returns all tasks of any state%0A%09 */%0A%09@RequestMapping(value = %22/tasks%22, method = RequestMethod.GET)%0A%09public Collection%3CTask%3E tasks() %7B%0A%09%09return taskManager.getTasks();%0A%09%7D%0A%7D%0A

Add REST API for listing tasks