stable

Clone or download

Read-only

Refactor 403 and 404 rest exceptions

Part of epic #12142 Baseline v1 Change-Id: I2408d0470fe46ef2f0ee943c1a513c1a8ef9a425

Modified Files

Name
M include/REST/BaselineArtifactController.php +8 −10 Go to diff View file
M include/REST/BaselineController.php +13 −15 Go to diff View file
M include/REST/BaselinesResource.php +7 −5 Go to diff View file
A include/REST/Exception/ForbiddenRestException.php +36 −0 Go to diff View file
A include/REST/Exception/NotFoundRestException.php +36 −0 Go to diff View file
M include/REST/ProjectBaselineController.php +6 −7 Go to diff View file
M phpunit/REST/BaselineArtifactControllerTest.php +2 −3 Go to diff View file
M phpunit/REST/BaselineControllerTest.php +7 −11 Go to diff View file
A phpunit/REST/Exception/ForbiddenRestExceptionTest.php +39 −0 Go to diff View file
A phpunit/REST/Exception/NotFoundRestExceptionTest.php +39 −0 Go to diff View file
M phpunit/REST/ProjectBaselineControllerTest.php +4 −5 Go to diff View file