# HG changeset patch # User Raimund Renkert # Date 1372075367 -7200 # Node ID 1613ab50d6d09b785e67c149e1a01402da5d4edf # Parent 3fd87a66c60ce691d43477ece90f0841805c3e8e LProbeService uses LProbeInfo objects to deserialize JSON and extracts a LProbe object. diff -r 3fd87a66c60c -r 1613ab50d6d0 src/main/java/de/intevation/lada/rest/LProbeService.java --- a/src/main/java/de/intevation/lada/rest/LProbeService.java Mon Jun 24 13:52:46 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LProbeService.java Mon Jun 24 14:02:47 2013 +0200 @@ -88,14 +88,15 @@ @Path("/{id}") @Produces("text/json") @Consumes("application/json") - public Response update(LProbe probe) { + public Response update(LProbeInfo probe) { return repository.update(probe); } @POST @Produces("text/json") @Consumes("application/json") - public Response create(LProbe probe) { - return repository.create(probe); + public Response create(LProbeInfo probe) { + LProbe p = probe.toLProbe(); + return repository.create(p); } }