|
|
@@ -111,8 +111,8 @@ import static org.sonar.server.measure.ws.SnapshotDtoToWsPeriod.snapshotToWsPeri |
|
|
|
import static org.sonar.server.ws.KeyExamples.KEY_BRANCH_EXAMPLE_001; |
|
|
|
import static org.sonar.server.ws.KeyExamples.KEY_PROJECT_EXAMPLE_001; |
|
|
|
import static org.sonar.server.ws.KeyExamples.KEY_PULL_REQUEST_EXAMPLE_001; |
|
|
|
import static org.sonar.server.ws.WsParameterBuilder.QualifierParameterContext.newQualifierParameterContext; |
|
|
|
import static org.sonar.server.ws.WsParameterBuilder.createQualifiersParameter; |
|
|
|
import static org.sonar.server.ws.WsParameterBuilder.QualifierParameterContext.newQualifierParameterContext; |
|
|
|
import static org.sonar.server.ws.WsUtils.checkRequest; |
|
|
|
import static org.sonar.server.ws.WsUtils.writeProtobuf; |
|
|
|
|
|
|
@@ -177,8 +177,8 @@ public class ComponentTreeAction implements MeasuresWsAction { |
|
|
|
public void define(WebService.NewController context) { |
|
|
|
WebService.NewAction action = context.createAction(ACTION_COMPONENT_TREE) |
|
|
|
.setDescription(format("Navigate through components based on the chosen strategy with specified measures. The %s or the %s parameter must be provided.<br>" + |
|
|
|
"Requires the following permission: 'Browse' on the specified project.<br>" + |
|
|
|
"When limiting search with the %s parameter, directories are not returned.", |
|
|
|
"Requires the following permission: 'Browse' on the specified project.<br>" + |
|
|
|
"When limiting search with the %s parameter, directories are not returned.", |
|
|
|
DEPRECATED_PARAM_BASE_COMPONENT_ID, PARAM_COMPONENT, Param.TEXT_QUERY)) |
|
|
|
.setResponseExample(getClass().getResource("component_tree-example.json")) |
|
|
|
.setSince("5.4") |
|
|
@@ -196,10 +196,10 @@ public class ComponentTreeAction implements MeasuresWsAction { |
|
|
|
.setExampleValue(NAME_SORT + "," + PATH_SORT); |
|
|
|
|
|
|
|
action.createParam(Param.TEXT_QUERY) |
|
|
|
.setDescription(format("Limit search to: <ul>" + |
|
|
|
.setDescription("Limit search to: <ul>" + |
|
|
|
"<li>component names that contain the supplied string</li>" + |
|
|
|
"<li>component keys that are exactly the same as the supplied string</li>" + |
|
|
|
"</ul>")) |
|
|
|
"</ul>") |
|
|
|
.setMinimumLength(QUERY_MINIMUM_LENGTH) |
|
|
|
.setExampleValue("FILE_NAM"); |
|
|
|
|