changeset 20:7a9e22e7e8af

Change return type to JSON
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 26 Apr 2013 14:06:51 +0200
parents c2afb2e08394
children f4bc98fb8aac
files src/main/java/de/intevation/rest/LProbeRESTService.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/rest/LProbeRESTService.java	Fri Apr 26 13:58:21 2013 +0200
+++ b/src/main/java/de/intevation/rest/LProbeRESTService.java	Fri Apr 26 14:06:51 2013 +0200
@@ -29,11 +29,10 @@
    private Logger log;
 
    @GET
-   @Produces("text/plain")
-   public String listAllMembers() {
+   @Produces("text/json")
+   public List<LProbe> listAllMembers() {
       final List<LProbe> result = repository.findAll();
-      System.out.println(result);
-      return "Probenliste";
+      return result;
    }
 
    @GET
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)