stable

Clone or download

Read-only

GET /baselines/{id}/artifacts

Part of epic #12142 Baseline v1 Return all artifacts from a baseline. Without any parameter => returns artifacts directly linked to baseline's artifact. With query parameter => returns only artifacts with id given in ids attributs of query parameter. Ex: /baselines/{id}/artifacts?query={"ids": [1,2,3]} All returned artifacts are represented as they were at baseline snapshot date Change-Id: Iac7c7a748f2788e0b963007a124e4e5c34a2cee5

Modified Files

Name
M include/Adapter/BaselineArtifactRepositoryAdapter.php +43 −11 Go to diff View file
M include/Baseline/BaselineArtifact.php +44 −12 Go to diff View file
A include/Baseline/BaselineArtifactNotFoundException.php +30 −0 Go to diff View file
M include/Baseline/BaselineArtifactRepository.php +2 −2 Go to diff View file
A include/Baseline/BaselineArtifactService.php +76 −0 Go to diff View file
A include/REST/BaselineArtifactCollectionRepresentation.php +48 −0 Go to diff View file
A include/REST/BaselineArtifactController.php +128 −0 Go to diff View file
A include/REST/BaselineArtifactRepresentation.php +76 −0 Go to diff View file
A include/REST/BaselineArtifactsResource.php +80 −0 Go to diff View file
M include/REST/BaselineRestResourcesInjector.php +1 −0 Go to diff View file
M phpunit/Factory/BaselineArtifactBuilder.php +24 −1 Go to diff View file
M phpunit/Factory/BaselineArtifactFactory.php +3 −1 Go to diff View file
A phpunit/REST/BaselineArtifactControllerIntTest.php +130 −0 Go to diff View file
M phpunit/REST/BaselineControllerIntTest.php +1 −1 Go to diff View file
M phpunit/REST/IntegrationTestCaseWithStubs.php +6 −9 Go to diff View file
A phpunit/Stub/ArtifactHistory.php +72 −0 Go to diff View file
M phpunit/Stub/BaselineArtifactRepositoryStub.php +40 −10 Go to diff View file
A phpunit/Stub/BaselineChangeSet.php +55 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po +4 −0 Go to diff View file
M site-content/tuleap-baseline.pot +4 −0 Go to diff View file
M tests/rest/BaselinesResourceTest.php +43 −3 Go to diff View file