stable

Clone or download

Read-only

Add `is_custom` and `url` keys in the REST service representation

Part of story #36485 have custom services to /projects/:id/project_services You can test with the API Explorer GET /projects/:id/project_services , you should see the keys in the representation. You can also test PUT project_services/:id => No functionnal change expected Change-Id: Icbfd8b4ede2ff1d2bf06ccb4eaf9d3b2455536ee

Modified Files

Name
M src/common/Project/REST/v1/ServiceRepresentation.php +26 −15 Go to diff View file
M src/common/Project/REST/v1/ServiceResource.php +2 −2 Go to diff View file
M tests/lib/Builders/ServiceBuilder.php +42 −6 Go to diff View file
M tests/unit/common/Project/REST/v1/ServiceRepresentationCollectionBuilderTest.php +14 −17 Go to diff View file
A tests/unit/common/Project/REST/v1/ServiceRepresentationTest.php +66 −0 Go to diff View file