comparison src/main/java/de/intevation/lada/rest/ProbeService.java @ 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 7a0e3d49ae33
children c3742f46c8e1
comparison
equal deleted inserted replaced
556:4017d2c8dd24 557:61ce3ce0100e
196 * Update an existing probe object. 196 * Update an existing probe object.
197 * 197 *
198 * @return Response object containing the updated probe object. 198 * @return Response object containing the updated probe object.
199 */ 199 */
200 @PUT 200 @PUT
201 @Path("/") 201 @Path("/{id}")
202 @Produces(MediaType.APPLICATION_JSON) 202 @Produces(MediaType.APPLICATION_JSON)
203 public Response update(@Context HttpHeaders headers, LProbe probe) { 203 public Response update(@Context HttpHeaders headers, LProbe probe) {
204 if (!authentication.isAuthenticated(headers)) { 204 if (!authentication.isAuthenticated(headers)) {
205 logger.debug("User is not authenticated!"); 205 logger.debug("User is not authenticated!");
206 return new Response(false, 699, null); 206 return new Response(false, 699, null);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)