Mercurial > lada > lada-server
changeset 557:61ce3ce0100e
Allow /{id} in urls on PUT requests.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 13 Mar 2015 16:43:32 +0100 |
parents | 4017d2c8dd24 |
children | a1b46c5c11c3 |
files | src/main/java/de/intevation/lada/rest/KommentarMService.java src/main/java/de/intevation/lada/rest/KommentarPService.java src/main/java/de/intevation/lada/rest/MessungService.java src/main/java/de/intevation/lada/rest/MesswertService.java src/main/java/de/intevation/lada/rest/OrtService.java src/main/java/de/intevation/lada/rest/ProbeService.java src/main/java/de/intevation/lada/rest/StatusService.java src/main/java/de/intevation/lada/rest/ZusatzwertService.java |
diffstat | 8 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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)) {
--- 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)) {
--- 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)) {
--- 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)) {
--- 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)) {
--- 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)) {
--- 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,