stable

Clone or download

Read-only

Retrieve project services via REST

GET /projects/:id/project_services returns the list of the service in the given project. { "id": <int>, "uri": <string>, "name": <string>, "label": <string>, "is_enabled": <bool> } Part of story #13238: toggle service usage with REST API Change-Id: I5989df6cb706e599c10cde8f425710c097c88d2e

Modified Files

Name
M src/common/Project/REST/v1/ProjectResource.class.php +56 −2 Go to diff View file
A src/common/Project/REST/v1/ServiceRepresentation.php +61 −0 Go to diff View file
A src/common/Project/REST/v1/ServiceRepresentationCollectionBuilder.php +74 −0 Go to diff View file
M src/common/REST/ResourcesInjector.class.php +11 −1 Go to diff View file
M tests/lib/TestDataBuilder.php +1 −0 Go to diff View file
A tests/phpunit/common/Project/REST/v1/ServiceRepresentationCollectionBuilderTest.php +121 −0 Go to diff View file
A tests/rest/_fixtures/13-project-services/project.xml +22 −0 Go to diff View file
A tests/rest/_fixtures/13-project-services/user_map.csv +1 −0 Go to diff View file
A tests/rest/_fixtures/13-project-services/users.xml +10 −0 Go to diff View file
M tests/rest/bin/setup.sh +1 −0 Go to diff View file
A tests/rest/tests/ProjectServicesTest.php +63 −0 Go to diff View file
M tests/rest/tests/ProjectTest.php +8 −0 Go to diff View file