From 76c63eb793a012323f167457e86fea2aa873ff22 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Fri, 18 Mar 2016 11:07:17 +0100 Subject: [PATCH] SONAR-7106 WS api/permissions/search_project_permissions update documentation related to search --- .../permission/ws/SearchProjectPermissionsAction.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"); -- 2.39.5