[Lada-commits] [PATCH 02 of 11] Allow /{id} in urls on PUT requests

Wald Commits scm-commit at wald.intevation.org
Fri Mar 13 16:50:41 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426261412 -3600
# Node ID 61ce3ce0100e9c878d8c2bef7b2c22eb27776799
# Parent  4017d2c8dd2468ea40711143b66bc2ce76dbd756
Allow /{id} in urls on PUT requests.

diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/KommentarMService.java
--- a/src/main/java/de/intevation/lada/rest/KommentarMService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/KommentarMService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -131,7 +131,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(
         @Context HttpHeaders headers,
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/KommentarPService.java
--- a/src/main/java/de/intevation/lada/rest/KommentarPService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/KommentarPService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -131,7 +131,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LKommentarP kommentar) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/MessungService.java
--- a/src/main/java/de/intevation/lada/rest/MessungService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/MessungService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -140,7 +140,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LMessung messung) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/MesswertService.java
--- a/src/main/java/de/intevation/lada/rest/MesswertService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/MesswertService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -129,7 +129,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LMesswert messwert) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/OrtService.java
--- a/src/main/java/de/intevation/lada/rest/OrtService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/OrtService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -129,7 +129,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LOrt ort) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/ProbeService.java
--- a/src/main/java/de/intevation/lada/rest/ProbeService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/ProbeService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -198,7 +198,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LProbe probe) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/StatusService.java
--- a/src/main/java/de/intevation/lada/rest/StatusService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -128,7 +128,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(@Context HttpHeaders headers, LStatus status) {
         if (!authentication.isAuthenticated(headers)) {
diff -r 4017d2c8dd24 -r 61ce3ce0100e src/main/java/de/intevation/lada/rest/ZusatzwertService.java
--- a/src/main/java/de/intevation/lada/rest/ZusatzwertService.java	Fri Mar 13 16:42:12 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/ZusatzwertService.java	Fri Mar 13 16:43:32 2015 +0100
@@ -128,7 +128,7 @@
      * @return Response object containing the updated probe object.
      */
     @PUT
-    @Path("/")
+    @Path("/{id}")
     @Produces(MediaType.APPLICATION_JSON)
     public Response update(
         @Context HttpHeaders headers,


More information about the Lada-commits mailing list