stable

Clone or download

Read-only

GET projects/:id/baselines_comparisons

Part of epic #12142 Baseline v1 Return codes: ==> 200 if all is ok ==> 401 if not authenticated ==> 404 if project not found Change-Id: I1fc4e57b0f2d57cfe68237f52e68e4665eb67ebf

Modified Files

Name
M include/Adapter/ComparisonRepositoryAdapter.php +59 −0 Go to diff View file
M include/Domain/BaselineRepository.php +3 −3 Go to diff View file
M include/Domain/BaselineService.php +2 −2 Go to diff View file
M include/Domain/ComparisonRepository.php +20 −0 Go to diff View file
M include/Domain/ComparisonService.php +24 −0 Go to diff View file
A include/Domain/ComparisonsPage.php +70 −0 Go to diff View file
M include/REST/BaselineRestResourcesInjector.php +1 −0 Go to diff View file
M include/REST/ComparisonRepresentation.php +1 −1 Go to diff View file
A include/REST/ComparisonsPageRepresentation.php +65 −0 Go to diff View file
M include/REST/ProjectBaselineController.php +1 −1 Go to diff View file
M include/REST/ProjectBaselinesResource.php +1 −1 Go to diff View file
A include/REST/ProjectComparisonController.php +75 −0 Go to diff View file
A include/REST/ProjectComparisonsResource.php +86 −0 Go to diff View file
M phpunit/Adapter/ComparisonRepositoryAdapterTest.php +107 −0 Go to diff View file
M phpunit/Domain/ComparisonServiceTest.php +37 −0 Go to diff View file
A phpunit/Factory/ComparisonFactory.php +47 −0 Go to diff View file
A phpunit/REST/ProjectComparisonControllerIntTest.php +101 −0 Go to diff View file
A phpunit/REST/ProjectComparisonControllerTest.php +123 −0 Go to diff View file
M phpunit/Stub/ComparisonRepositoryStub.php +20 −0 Go to diff View file
M tests/rest/ComparisonsResourceTest.php +30 −0 Go to diff View file