From: Teryk Bellahsene Date: Fri, 18 Mar 2016 10:07:17 +0000 (+0100) Subject: SONAR-7106 WS api/permissions/search_project_permissions update documentation related... X-Git-Tag: 5.5-M11~114 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=76c63eb793a012323f167457e86fea2aa873ff22;p=sonarqube.git SONAR-7106 WS api/permissions/search_project_permissions update documentation related to search --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java index 90009578fe4..1769c4a96b8 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java @@ -77,9 +77,14 @@ public class SearchProjectPermissionsAction implements PermissionsWsAction { .setResponseExample(getClass().getResource("search_project_permissions-example.json")) .setSince("5.2") .addPagingParams(25) - .addSearchQuery("sonarq", "project names", "project keys") .setHandler(this); + action.createParam(Param.TEXT_QUERY) + .setDescription("Limit search to: ") + .setExampleValue("apac"); createProjectParameters(action); createRootQualifierParameter(action, newQualifierParameterContext(userSession, i18n, resourceTypes)) .setSince("5.3");