# HG changeset patch # User Torsten Irländer # Date 1370931165 -7200 # Node ID 8b48dabb358208ecc755d6b72cb5d90239dca0a7 # Parent b8485591598044ea11a1cc3c2d75ab40c7753d71 No need to build the response here anymore as this is already done in the repository. diff -r b84855915980 -r 8b48dabb3582 src/main/java/de/intevation/lada/rest/LProbeService.java --- a/src/main/java/de/intevation/lada/rest/LProbeService.java Tue Jun 11 08:12:13 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LProbeService.java Tue Jun 11 08:12:45 2013 +0200 @@ -112,11 +112,11 @@ @Produces("text/json") @Consumes("application/json") public Response create(LProbe probe) { - boolean success = repository.create(probe); - int generalError = repository.getGeneralError(); - Response response = new Response(success, generalError, probe); - response.setWarnings(repository.getWarnings()); - response.setErrors(repository.getErrors()); - return response; + return repository.create(probe); + //int generalError = repository.getGeneralError(); + //Response response = new Response(success, generalError, probe); + //response.setWarnings(repository.getWarnings()); + //response.setErrors(repository.getErrors()); + //return response; } }