diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-28 10:04:34 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-28 10:04:34 +0100 |
commit | ab5ae3d8957fa62f39608c574d435bc2c39fdf00 (patch) | |
tree | 20bc5c12dd4fc4cc4fe1e462a4233b180ed48109 /server | |
parent | 9f12fac080a0176c772a91789b490b5b25364974 (diff) | |
download | sonarqube-ab5ae3d8957fa62f39608c574d435bc2c39fdf00.tar.gz sonarqube-ab5ae3d8957fa62f39608c574d435bc2c39fdf00.zip |
SONAR-6584 WS api/resources/index document known bug regarding pagination
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java index f2ea2507ed2..618cc39a526 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java +++ b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java @@ -41,7 +41,14 @@ public class ResourcesWs implements WebService { private void defineIndexAction(NewController controller) { NewAction action = controller.createAction("index") - .setDescription("Get a list of components. Requires Browse permission on resource") + .setDescription("Gets a list of components. Requires Browse permission on resource.<br>" + + "The web service is deprecated and you're invited to use the alternatives: " + + "<ul>" + + "<li>if you need components only: api/components/tree</li>" + + "<li>if you need components with measures: api/measures/component_tree</li>" + + "</ul>" + + "When you provide one metric, the number of results is limited to 500. When several metrics are provided, the number of results is not limited. " + + "This is a known limitation and it won't be fixed.") .setSince("2.10") .setDeprecatedSince("5.4") .setHandler(RailsHandler.INSTANCE) |