changeset 104:ba35b1f642ec

Call update method of repository.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 13:06:55 +0200
parents ffb008cf7c77
children 6883be216e64
files src/main/java/de/intevation/lada/rest/LProbeService.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Tue Jun 11 13:06:31 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Tue Jun 11 13:06:55 2013 +0200
@@ -104,8 +104,8 @@
     @Path("/{id}")
     @Produces("text/json")
     @Consumes("application/json")
-    public String update(LProbe probe) {
-        return "{success: false, errors: {probeId: \"Client not found\"}}";
+    public Response update(LProbe probe) {
+        return repository.update(probe);
     }
 
     @POST
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)