public void define(WebService.NewController context) {
WebService.NewAction action = context.createAction(ACTION_SEARCH)
.setSince("6.3")
- .setDescription("Search for components.<br>" +
- "Returns the components with the 'Browse' permission.")
+ .setDescription("Search for components")
.addPagingParams(100)
.addSearchQuery("sona", "component names", "component keys")
.setResponseExample(getClass().getResource("search-components-example.json"))
public void define(WebService.NewController context) {
WebService.NewAction action = context.createAction(ACTION_SEARCH)
.setSince("6.3")
- .setDescription("Search for projects or views.<br>" +
+ .setDescription("Search for projects or views to administrate them.<br>" +
"Requires 'System Administrator' permission")
.setInternal(true)
.addPagingParams(100, MAX_PAGE_SIZE)
WebService.Action action = ws.getDef();
assertThat(action.key()).isEqualTo("search");
assertThat(action.isPost()).isFalse();
- assertThat(action.description()).isEqualTo("Search for projects or views.<br>Requires 'System Administrator' permission");
+ assertThat(action.description()).isEqualTo("Search for projects or views to administrate them.<br>Requires 'System Administrator' permission");
assertThat(action.isInternal()).isTrue();
assertThat(action.since()).isEqualTo("6.3");
assertThat(action.handler()).isEqualTo(ws.getDef().handler());