Mercurial > lada > lada-server
changeset 631:e0d3459d5914
listen to /object/{id} on PUT requests.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 23 Apr 2015 10:44:19 +0200 |
parents | 44d7ff0461f2 |
children | 3dbdef97ee02 |
files | src/main/java/de/intevation/lada/rest/KommentarMService.java src/main/java/de/intevation/lada/rest/stamm/LocationService.java |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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");