changeset 266:2e86f535f290

Added basic query configuration sekeleton
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 10:57:18 +0200
parents 6c26e6474c0f
children df168246a4d2
files src/main/java/de/intevation/lada/rest/QueryService.java
diffstat 1 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/QueryService.java	Wed Jul 24 09:09:57 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/QueryService.java	Wed Jul 24 10:57:18 2013 +0200
@@ -61,8 +61,18 @@
         }
     }
 
-	private String loadQueryConfig() {
-		String query = "[]";
-		return query;
-	}
+    private String loadQueryConfig() {
+        String query = "[" +
+        "{" +
+        "\"id\": \"1\"," +
+        "\"description\": \"Beschreibung für Query 1\"," +
+        "\"sql\": \"SELECT * FROM l_probe;\"," +
+        "\"filters\": [\"mst\"]," +
+        "\"results\": [" +
+        "{\"field\": \"\", \"label\": \"\", \"type\": \"\"}" +
+        "]" +
+        "}" +
+        "]";
+        return query;
+    }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)