stable

Clone or download

Read-only

story #9439: search for project name with REST

Enhance GET /projects route: GET /projects/?query=term Where term is a json object {"shorname":"gpig"} then it will search for exact match "gpig" in shortname The results are returned according to user's permissions. The return type of the route is not changed Change-Id: I15e0920404007997dcfc5dc2fe07f85d81f6f59c

Modified Files

Name
M src/common/dao/ProjectDao.class.php +32 −0 Go to diff View file
M src/common/project/ProjectManager.class.php +20 −4 Go to diff View file
M src/common/project/REST/v1/ProjectResource.class.php +42 −6 Go to diff View file
M tests/rest/ProjectTest.php +14 −0 Go to diff View file