@Timed
@ApiOperation("Update the LDAP configuration")
@Path("/settings")
@Consumes(MediaType.APPLICATION_JSON)
public void updateLdapSettings(@ApiParam(name = "JSON body", required = true) String body) {
LdapSettingsRequest request;
try {
request = objectMapper.readValue(body, LdapSettingsRequest.class);
} catch (IOException e) {
LOG.error("Error while parsing JSON", e);
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);