[Lada-commits] [PATCH 2 of 2] listen to /object/{id} on PUT requests
Wald Commits
scm-commit at wald.intevation.org
Thu Apr 23 10:43:32 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1429778659 -7200
# Node ID e0d3459d5914767d43b11fa10e38b919cc9b7f89
# Parent 44d7ff0461f2373e3c8704fea3c762055c496edc
listen to /object/{id} on PUT requests.
diff -r 44d7ff0461f2 -r e0d3459d5914 src/main/java/de/intevation/lada/rest/KommentarMService.java
--- a/src/main/java/de/intevation/lada/rest/KommentarMService.java Thu Apr 23 10:40:36 2015 +0200
+++ b/src/main/java/de/intevation/lada/rest/KommentarMService.java Thu Apr 23 10:44:19 2015 +0200
@@ -162,7 +162,7 @@
* @return A response object containing the created KommentarM.
*/
@POST
- @Path("/")
+ @Path("/{id}")
@Produces(MediaType.APPLICATION_JSON)
public Response create(
@Context HttpHeaders headers,
diff -r 44d7ff0461f2 -r e0d3459d5914 src/main/java/de/intevation/lada/rest/stamm/LocationService.java
--- a/src/main/java/de/intevation/lada/rest/stamm/LocationService.java Thu Apr 23 10:40:36 2015 +0200
+++ b/src/main/java/de/intevation/lada/rest/stamm/LocationService.java Thu Apr 23 10:44:19 2015 +0200
@@ -195,7 +195,7 @@
* @return Response object containing the updated SOrt object.
*/
@PUT
- @Path("/")
+ @Path("/{id}")
@Produces(MediaType.APPLICATION_JSON)
public Response update(@Context HttpHeaders headers, SOrt ort) {
Response response = defaultRepo.update(ort, "stamm");
More information about the Lada-commits
mailing list