aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/resources
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-05-21 17:42:07 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-05-21 17:42:07 +0200
commit66089b35305c4e8d009d3900231a2774c7d71832 (patch)
tree9bdc60def0ebe99064096e698258b3cc33d560bb /sonar-server/src/main/resources
parentabcc0e27eaa842847e72f5d87a0d8bb2f4df2e56 (diff)
downloadsonarqube-66089b35305c4e8d009d3900231a2774c7d71832.tar.gz
sonarqube-66089b35305c4e8d009d3900231a2774c7d71832.zip
SONAR-5286 Provide a new "/api/duplications/show" WS
Diffstat (limited to 'sonar-server/src/main/resources')
-rw-r--r--sonar-server/src/main/resources/org/sonar/server/duplication/ws/example-show.json54
1 files changed, 54 insertions, 0 deletions
diff --git a/sonar-server/src/main/resources/org/sonar/server/duplication/ws/example-show.json b/sonar-server/src/main/resources/org/sonar/server/duplication/ws/example-show.json
new file mode 100644
index 00000000000..16be68f375b
--- /dev/null
+++ b/sonar-server/src/main/resources/org/sonar/server/duplication/ws/example-show.json
@@ -0,0 +1,54 @@
+{
+ "duplications": [
+ {
+ "blocks": [
+ {
+ "from": 94, "size": 101, "_ref": "1"
+ },
+ {
+ "from": 83, "size": 101, "_ref": "2"
+ }
+ ]
+ },
+ {
+ "blocks": [
+ {
+ "from": 38, "size": 40, "_ref": "1"
+ },
+ {
+ "from": 29, "size": 39, "_ref": "2"
+ }
+ ]
+ },
+ {
+ "blocks": [
+ {
+ "from": 148, "size": 24, "_ref": "1"
+ },
+ {
+ "from": 137, "size": 24, "_ref": "2"
+ },
+ {
+ "from": 137, "size": 24, "_ref": "3"
+ }
+ ]
+ }
+ ],
+ "files": {
+ "1": {
+ "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/utils/command/CommandExecutor.java",
+ "name": "CommandExecutor",
+ "projectName": "SonarQube"
+ },
+ "2": {
+ "key": "com.sonarsource.orchestrator:sonar-orchestrator:src/main/java/com/sonar/orchestrator/util/CommandExecutor.java",
+ "name": "CommandExecutor",
+ "projectName": "SonarSource :: Orchestrator"
+ },
+ "3": {
+ "key": "org.codehaus.sonar.runner:sonar-runner-api:src/main/java/org/sonar/runner/api/CommandExecutor.java",
+ "name": "CommandExecutor",
+ "projectName": "SonarSource Runner"
+ }
+ }
+}