stable

Clone or download

Read-only

PATCH /projects/:id

Part of story #12265 - have a REST end point to toggle project's status How to test: - With a regular user, try to toggle the status of a project --> 403 Forbidden - With site-admin try to toggle the status of a project --> 200 OK - With a REST project manager try to toggle the status of a project --> 200 OK - Try to toggle the status of a non-existing project --> 404 Project not found - Try to toggle the status of a system prject (id in [1, 100]) --> 403 Forbidden Change-Id: I57173865352f4ebb04cc36036b3ed780a27ae244

Modified Files

Name
M src/common/project/Project.class.php +1 −1 Go to diff View file
A src/common/project/REST/v1/PATCHProjectRepresentation.php +30 −0 Go to diff View file
M src/common/project/REST/v1/ProjectResource.class.php +129 −22 Go to diff View file
M tests/rest/tests/ProjectTest.php +59 −9 Go to diff View file