stable

Clone or download

Read-only

REST route to retrieve Roadmap content

Retrieve all the "tasks" (gantt term) of a roadmap widget: GET /roadmaps/:id/tasks Only basic information is retrieved for now to be able to start display something ASAP. Other relevant information will come later. If user doesn't have access to the tracker or the project, or cannot access to some information (needed to display the graph like title or start date), then an error message is returned instead. To test, you will find the :id in plugin_roadmap_widget table (autoincrement id). Part of story #19734: have a Roadmap widget on dashboard Change-Id: I94048e0788cf070cab28dd4f5526469514622c76

Modified Files

Name
A plugins/roadmap/include/Roadmap/REST/ResourcesInjector.php +31 −0 Go to diff View file
A plugins/roadmap/include/Roadmap/REST/v1/PaginatedCollectionOfTaskRepresentations.php +62 −0 Go to diff View file
A plugins/roadmap/include/Roadmap/REST/v1/RoadmapResource.php +83 −0 Go to diff View file
A plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksRetriever.php +196 −0 Go to diff View file
A plugins/roadmap/include/Roadmap/REST/v1/TaskRepresentation.php +59 −0 Go to diff View file
M plugins/roadmap/include/Roadmap/RoadmapWidgetDao.php +9 −0 Go to diff View file
M plugins/roadmap/include/roadmapPlugin.php +11 −0 Go to diff View file
M plugins/roadmap/site-content/fr_FR/LC_MESSAGES/tuleap-roadmap.po +17 −0 Go to diff View file
A plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksRetrieverTest.php +785 −0 Go to diff View file