stable

Clone or download

Read-only

Add a GET route on /git/:id/tree

This change is part of story #18320 native support of pull requests in tuleap branch source jenkins plugin The goal of this route is to be able to retrieve the tree content of a path on a Git repository. An error should be thrown if reference or folder is not found or if the provided path is not one of a directory. Change-Id: I4bc96ccf7b60656474134cf2d597addf1c9dcd2d

Modified Files

Name
A plugins/git/include/REST/v1/GitObjectTypeNotSupportedException.php +34 −0 Go to diff View file
A plugins/git/include/REST/v1/GitTreeRepresentation.php +61 −0 Go to diff View file
A plugins/git/include/REST/v1/GitTreeRepresentationFactory.php +79 −0 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +56 −1 Go to diff View file
M plugins/git/tests/rest/Git/RepositoryTest.php +64 −0 Go to diff View file
A plugins/git/tests/unit/Git/REST/v1/GitTreeRepresentationFactoryTest.php +206 −0 Go to diff View file