]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7106 WS api/permissions/search_project_permissions update documentation related...
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 18 Mar 2016 10:07:17 +0000 (11:07 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 18 Mar 2016 16:52:42 +0000 (17:52 +0100)
server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java

index 90009578fe47958c5fa6d69fd38adb57e43c063b..1769c4a96b8acfad2c5a5cf0979ca9d029d8227b 100644 (file)
@@ -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: <ul>" +
+        "<li>project names that contain the supplied string</li>" +
+        "<li>project keys that are exactly the same as the supplied string</li>" +
+        "</ul>")
+      .setExampleValue("apac");
     createProjectParameters(action);
     createRootQualifierParameter(action, newQualifierParameterContext(userSession, i18n, resourceTypes))
       .setSince("5.3");