changeset 55:ddcf13f7b6a0

Removed "/details/{id}" url pattern to load the detailed version of a proben item. Accouring to REST the detailed version von now be loaded using /{id} pattern.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 27 May 2013 15:02:12 +0200
parents 1b4f9f4b3b57
children 9f3e902ce778
files src/main/java/de/intevation/lada/rest/LProbeService.java
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Fri May 24 14:58:56 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Mon May 27 15:02:12 2013 +0200
@@ -47,8 +47,8 @@
     @GET
     @Path("/{id}")
     @Produces("text/json")
-    public LProbe loadById(@PathParam("id") String id) {
-       return repository.findById(LProbe.class, id);
+    public LProbeDetails details(@PathParam("id") String id) {
+        return repository.details(id);
     }
 
     /**
@@ -90,11 +90,4 @@
         }
         return repository.filter(mstId, uwbId, begin);
     }
-
-    @GET
-    @Path("/details/{id}")
-    @Produces("text/json")
-    public LProbeDetails details(@PathParam("id") String id) {
-        return repository.details(id);
-    }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)