stable

Clone or download

Read-only

GET baselines/comparisons/:id

Part of epic #12142 Baseline v1 ==> 200 ==> 401 if not authenticated ==> 404 if no comparison exists with given id Change-Id: I134e301cd0557a8643d05751fc3039e0f0627b93

Modified Files

Name
M include/Adapter/ComparisonRepositoryAdapter.php +55 −2 Go to diff View file
M include/Domain/ComparisonRepository.php +2 −0 Go to diff View file
M include/Domain/ComparisonService.php +5 −0 Go to diff View file
M include/REST/ComparisonController.php +18 −0 Go to diff View file
M include/REST/ComparisonsResource.php +30 −1 Go to diff View file
M phpunit/Adapter/ComparisonRepositoryAdapterTest.php +167 −1 Go to diff View file
M phpunit/REST/ComparisonControllerIntTest.php +22 −0 Go to diff View file
A phpunit/REST/ComparisonControllerTest.php +76 −0 Go to diff View file
M phpunit/Stub/ComparisonRepositoryStub.php +9 −2 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po +4 −0 Go to diff View file
A tests/rest/BaselineFixtureData.php +32 −0 Go to diff View file
M tests/rest/BaselinesResourceTest.php +17 −47 Go to diff View file
A tests/rest/ComparisonsResourceTest.php +135 −0 Go to diff View file