stable

Clone or download

Read-only

Implement GET /projects/:id/baselines in Baseline plugin

Part of epic #12142 Baseline v1 Parameters: - limit: max number of baseline to fetch - offset: position of the first baseline to fetch (sorted by snapshot date) Returns: - baselines: array of required baselines - total_count: total count of all available baselines ==> 404 if project not found ==> 403 if not authorized Change-Id: I141d641855c0869834bafba6dd0699f718e81a65

Modified Files

Name
M include/REST/BaselineController.php +1 −1 Go to diff View file
M include/REST/BaselineRepresentation.php +19 −8 Go to diff View file
M include/REST/BaselineRestResourcesInjector.php +2 −0 Go to diff View file
A include/REST/BaselinesPageRepresentation.php +63 −0 Go to diff View file
A include/REST/ProjectBaselineController.php +75 −0 Go to diff View file
A include/REST/ProjectBaselinesResource.php +82 −0 Go to diff View file
M phpunit/Factory/BaselineFactory.php +15 −0 Go to diff View file
M phpunit/Factory/MilestoneBuilder.php +10 −10 Go to diff View file
M phpunit/Factory/MilestoneFactory.php +3 −1 Go to diff View file
A phpunit/Factory/TrackerBuilder.php +52 −0 Go to diff View file
A phpunit/Factory/TrackerFactory.php +34 −0 Go to diff View file
A phpunit/REST/BaselineRepresentationTest.php +57 −0 Go to diff View file
A phpunit/REST/BaselinesPageRepresentationTest.php +74 −0 Go to diff View file
M phpunit/REST/IntegrationTestCaseWithStubs.php +5 −0 Go to diff View file
A phpunit/REST/ProjectBaselineControllerIntTest.php +129 −0 Go to diff View file
A phpunit/REST/ProjectBaselineControllerTest.php +130 −0 Go to diff View file
M tests/rest/BaselinesResourceTest.php +26 −0 Go to diff View file