]> source.dussan.org Git - sonarqube.git/commitdiff
Improve doc of api/ce/queue
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 2 Oct 2015 09:57:51 +0000 (11:57 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 2 Oct 2015 09:57:51 +0000 (11:57 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/ws/QueueWsAction.java

index 2a1a63d7443981b145bd2ddd2647a22ed980da00..4ee9655589a0f9dcb2e18b88617ace02997993cd 100644 (file)
@@ -25,6 +25,7 @@ import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
 import org.sonar.api.web.UserRole;
 import org.sonar.core.permission.GlobalPermissions;
+import org.sonar.core.util.Uuids;
 import org.sonar.db.DbClient;
 import org.sonar.db.DbSession;
 import org.sonar.db.ce.CeQueueDto;
@@ -56,7 +57,10 @@ public class QueueWsAction implements CeWsAction {
       .setResponseExample(getClass().getResource("queue-example.json"))
       .setHandler(this);
 
-    action.createParam(PARAM_COMPONENT_UUID);
+    action
+      .createParam(PARAM_COMPONENT_UUID)
+      .setDescription("Optional filter on component. Requires administration permission of the component.")
+      .setExampleValue(Uuids.UUID_EXAMPLE_01);
   }
 
   @Override