]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7139 Deprecate WS api/resources/index and api/resources/search
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 12 Jan 2016 11:54:31 +0000 (12:54 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 12 Jan 2016 11:54:31 +0000 (12:54 +0100)
server/sonar-server/src/main/java/org/sonar/server/component/ws/ResourcesWs.java

index 300f9634cde3470b78ec8f81a7033acdc196d743..eee9ca0ab190adb2c10b730f5390c247a7582788 100644 (file)
@@ -41,6 +41,7 @@ public class ResourcesWs implements WebService {
     NewAction action = controller.createAction("index")
       .setDescription("Get a list of components. Requires Browse permission on resource")
       .setSince("2.10")
+      .setDeprecatedSince("5.4")
       .setHandler(RailsHandler.INSTANCE)
       .setResponseExample(Resources.getResource(this.getClass(), "resources-example-index.json"));
 
@@ -118,6 +119,7 @@ public class ResourcesWs implements WebService {
     NewAction action = controller.createAction("search")
       .setDescription("Search for components")
       .setSince("3.3")
+      .setDeprecatedSince("5.4")
       .addPagingParams(10)
       .setInternal(true)
       .setHandler(RailsHandler.INSTANCE)