changeset 176:a427f8025051

Fixed path of Delete and Update method to match kId/probeId URL-Pattern.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 26 Jun 2013 17:11:43 +0200
parents 0474c86a2f4a
children 2550ddb3b910
files src/main/java/de/intevation/lada/rest/LKommentarService.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LKommentarService.java	Wed Jun 26 11:41:08 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LKommentarService.java	Wed Jun 26 17:11:43 2013 +0200
@@ -58,9 +58,9 @@
     }
 
     @DELETE
-    @Path("/{id}")
+    @Path("/{kId}/{probeId}")
     @Produces("text/json")
-    public String delete(@PathParam("id") String id) {
+    public String delete(@PathParam("kId") String kid, @PathParam("probeId") String probeId) {
         return "[{success: true}]";
         //String response = repository.delete(id);
         //if (response.isEmpty()) {
@@ -73,6 +73,7 @@
     }
 
     @PUT
+    @Path("/{kId}/{probeId}")
     @Produces("text/json")
     @Consumes("application/json")
     public String update(LKommentarP kommentar) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)