diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-03-17 11:39:20 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-03-21 13:05:50 +0100 |
commit | 80167039ad5f69fc900bd6eb95d3c9b95658c703 (patch) | |
tree | b0d1ea797afad3bf0f4a2c6823b4a79751f04d02 /server/sonar-server | |
parent | 8a4cbe9efb66780d6d734a70d1a3e3817598c4a6 (diff) | |
download | sonarqube-80167039ad5f69fc900bd6eb95d3c9b95658c703.tar.gz sonarqube-80167039ad5f69fc900bd6eb95d3c9b95658c703.zip |
SONAR-8968 Fix example files name in user WS
Diffstat (limited to 'server/sonar-server')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/user/ws/DeactivateAction.java | 2 | ||||
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/user/ws/GroupsAction.java | 2 | ||||
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/user/ws/UpdateAction.java | 2 | ||||
-rw-r--r-- | server/sonar-server/src/main/resources/org/sonar/server/user/ws/deactivate-example.json (renamed from server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-deactivate.json) | 0 | ||||
-rw-r--r-- | server/sonar-server/src/main/resources/org/sonar/server/user/ws/groups-example.json (renamed from server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-groups.json) | 0 | ||||
-rw-r--r-- | server/sonar-server/src/main/resources/org/sonar/server/user/ws/update-example.json (renamed from server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-update.json) | 0 |
6 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/user/ws/DeactivateAction.java b/server/sonar-server/src/main/java/org/sonar/server/user/ws/DeactivateAction.java index 6f05d7a6407..beff5005b2e 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/user/ws/DeactivateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/user/ws/DeactivateAction.java @@ -69,7 +69,7 @@ public class DeactivateAction implements UsersWsAction { .setDescription("Deactivate a user. Requires Administer System permission") .setSince("3.7") .setPost(true) - .setResponseExample(getClass().getResource("example-deactivate.json")) + .setResponseExample(getClass().getResource("deactivate-example.json")) .setHandler(this); action.createParam("login") diff --git a/server/sonar-server/src/main/java/org/sonar/server/user/ws/GroupsAction.java b/server/sonar-server/src/main/java/org/sonar/server/user/ws/GroupsAction.java index 9bfd6f41d24..87a58a806ca 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/user/ws/GroupsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/user/ws/GroupsAction.java @@ -60,7 +60,7 @@ public class GroupsAction implements UsersWsAction { NewAction action = context.createAction("groups") .setDescription("Lists the groups a user belongs to. Requires Administer System permission.") .setHandler(this) - .setResponseExample(getClass().getResource("example-groups.json")) + .setResponseExample(getClass().getResource("groups-example.json")) .setSince("5.2"); action.createParam(PARAM_LOGIN) diff --git a/server/sonar-server/src/main/java/org/sonar/server/user/ws/UpdateAction.java b/server/sonar-server/src/main/java/org/sonar/server/user/ws/UpdateAction.java index 3a544a862ce..24aeb94f08f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/user/ws/UpdateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/user/ws/UpdateAction.java @@ -68,7 +68,7 @@ public class UpdateAction implements UsersWsAction { .setSince("3.7") .setPost(true) .setHandler(this) - .setResponseExample(getClass().getResource("example-update.json")); + .setResponseExample(getClass().getResource("update-example.json")); action.createParam(PARAM_LOGIN) .setDescription("User login") diff --git a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-deactivate.json b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/deactivate-example.json index e45bb206694..e45bb206694 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-deactivate.json +++ b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/deactivate-example.json diff --git a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-groups.json b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/groups-example.json index 52a39b53438..52a39b53438 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-groups.json +++ b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/groups-example.json diff --git a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-update.json b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/update-example.json index b4bdfda4fe5..b4bdfda4fe5 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/user/ws/example-update.json +++ b/server/sonar-server/src/main/resources/org/sonar/server/user/ws/update-example.json |