This commit is contained in:
2025-02-11 10:13:38 +01:00
parent 281f6e01ee
commit 01dfea2917

View File

@@ -138,19 +138,17 @@ public class UtilityController {
StringBuilder responseString = new StringBuilder();
final int status = HttpRestWrapper.callGenericGet(url, null, null, responseString, null);
/* ObjectMapper mapper = new ObjectMapper();
ObjectMapper mapper = new ObjectMapper();
JsonNode node = mapper.readTree(responseString.toString());
boolean success = node.get("success").asBoolean();*/
boolean success = true;
boolean success = node.get("success").asBoolean();
return ServiceRestResponse.createPositiveResponse(success);
} else {
throw new Exception("La proprieta' \"url\" non è presente nel json");
}
}
@RequestMapping(value = EmsRestConstants.PATH_MIGRATE_GEOLOCATION_FOR_RLAVR, method = RequestMethod.GET)
public @ResponseBody
ServiceRestResponse setGeolocationFromCoordinate(HttpServletRequest request, @RequestParam(CommonConstants.PROFILE_DB) String configuration) {