]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6427 Fix WS example & response
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 30 Apr 2015 07:56:08 +0000 (09:56 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 5 May 2015 09:47:18 +0000 (11:47 +0200)
server/sonar-server/src/main/java/org/sonar/server/ui/ws/GlobalNavigationAction.java
server/sonar-server/src/main/resources/org/sonar/server/ui/ws/example-global.json
server/sonar-server/src/test/resources/org/sonar/server/ui/ws/GlobalNavigationActionTest/with_qualifiers.json

index 30a795d4ac1d3a3cff01222b64fc5f8bf0762b90..3647510ccb0480c968373075495ccb4bc3e86473 100644 (file)
@@ -107,7 +107,7 @@ public class GlobalNavigationAction implements NavigationAction {
   }
 
   private void writeQualifiers(JsonWriter json) {
-    json.name("rootQualifiers").beginArray();
+    json.name("qualifiers").beginArray();
     for (ResourceType rootType : resourceTypes.getRoots()) {
       json.value(rootType.getQualifier());
     }
index 1a01e276e07c7c40fbcdbd41e24fc9176fa89df3..44dcbd3e24c2a5e7efdcdeab4228d7ffddb78bae 100644 (file)
@@ -12,5 +12,6 @@
     }
   ],
   "logoUrl": "http://example.com/my-custom-logo.png",
-  "logoWidth": 135
+  "logoWidth": 135,
+  "qualifiers": ["TRK", "VW"]
 }