Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/rest/LProbeService.java @ 100:4ed15ffbc20c
Removed code to build the response on creation in the service. Response is
already built in the repository.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 11:13:15 +0200 |
parents | 8b48dabb3582 |
children | ba35b1f642ec |
comparison
equal
deleted
inserted
replaced
99:bd5c69c4b769 | 100:4ed15ffbc20c |
---|---|
111 @POST | 111 @POST |
112 @Produces("text/json") | 112 @Produces("text/json") |
113 @Consumes("application/json") | 113 @Consumes("application/json") |
114 public Response create(LProbe probe) { | 114 public Response create(LProbe probe) { |
115 return repository.create(probe); | 115 return repository.create(probe); |
116 //int generalError = repository.getGeneralError(); | |
117 //Response response = new Response(success, generalError, probe); | |
118 //response.setWarnings(repository.getWarnings()); | |
119 //response.setErrors(repository.getErrors()); | |
120 //return response; | |
121 } | 116 } |
122 } | 117 } |