"</ul>", PARAM_COMPONENT_ID, PARAM_COMPONENT_KEY))
.setResponseExample(getClass().getResource("list_definitions-example.json"))
.setSince("6.1")
+ .setInternal(true)
.setHandler(this);
addComponentParameters(action);
}
"<li>'Administer' rights on the specified component</li>" +
"</ul>", PARAM_COMPONENT_ID, PARAM_COMPONENT_KEY)
.setSince("6.1")
+ .setInternal(true)
.setPost(true)
.setHandler(this);
PARAM_VALUE, PARAM_VALUES,
PARAM_COMPONENT_ID, PARAM_COMPONENT_KEY)
.setSince("6.1")
+ .setInternal(true)
.setPost(true)
.setHandler(this);
"</ul>", PARAM_COMPONENT_ID, PARAM_COMPONENT_KEY)
.setResponseExample(getClass().getResource("values-example.json"))
.setSince("6.1")
+ .setInternal(true)
.setHandler(this);
addComponentParameters(action);
action.createParam(PARAM_KEYS)
public void test_ws_definition() {
WebService.Action action = ws.getDef();
assertThat(action).isNotNull();
- assertThat(action.isInternal()).isFalse();
+ assertThat(action.isInternal()).isTrue();
assertThat(action.isPost()).isFalse();
assertThat(action.responseExampleAsString()).isNotEmpty();
assertThat(action.params()).hasSize(2);
public void test_ws_definition() {
WebService.Action action = ws.getDef();
assertThat(action).isNotNull();
- assertThat(action.isInternal()).isFalse();
+ assertThat(action.isInternal()).isTrue();
assertThat(action.isPost()).isTrue();
assertThat(action.responseExampleAsString()).isNull();
assertThat(action.params()).hasSize(3);
assertThat(definition.key()).isEqualTo("set");
assertThat(definition.isPost()).isTrue();
+ assertThat(definition.isInternal()).isTrue();
assertThat(definition.since()).isEqualTo("6.1");
assertThat(definition.params()).extracting(Param::key)
.containsOnly("key", "value", "values", "fieldValues", "componentId", "componentKey");
public void test_ws_definition() {
WebService.Action action = ws.getDef();
assertThat(action).isNotNull();
- assertThat(action.isInternal()).isFalse();
+ assertThat(action.isInternal()).isTrue();
assertThat(action.isPost()).isFalse();
assertThat(action.responseExampleAsString()).isNotEmpty();
assertThat(action.params()).hasSize(3);