From be8ce5431659ae92e0fd52621f6422ea5c7d6147 Mon Sep 17 00:00:00 2001 From: Sascha Doemer Date: Sun, 3 Mar 2024 18:25:23 +0100 Subject: [PATCH] Feature/remove key value options from request (#51) * Removal of redundant URI query parameter This commit removes the "/op/update" + "?options=keyValues" query parameter from the HTTP request URI in the DeviceMeasurementIntegrationService. The "?options=keyValues" was found to be redundant and has been removed to clean-up the code and improve readability. * Update version in pom.xml This commit updates the version of the fiware-integration-layer artifact in the pom.xml from 12.1.0 to 12.2.0. This change reflects the ongoing evolution and progress of the project. --- pom.xml | 2 +- .../app/fivegla/fiware/DeviceMeasurementIntegrationService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b0a0056..61a73e4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ de.app.5gla fiware-integration-layer - 12.1.0 + 12.2.0 5gLa FIWARE integration layer https://github.com/vitrum-connect/5gla-fiware-integration-layer diff --git a/src/main/java/de/app/fivegla/fiware/DeviceMeasurementIntegrationService.java b/src/main/java/de/app/fivegla/fiware/DeviceMeasurementIntegrationService.java index 094cfaa..2d6bfaa 100644 --- a/src/main/java/de/app/fivegla/fiware/DeviceMeasurementIntegrationService.java +++ b/src/main/java/de/app/fivegla/fiware/DeviceMeasurementIntegrationService.java @@ -33,7 +33,7 @@ public void persist(DeviceMeasurement entity) { .build(); var httpClient = HttpClient.newHttpClient(); var httpRequest = HttpRequest.newBuilder() - .uri(URI.create(contextBrokerUrlForCommands() + "/op/update" + "?options=keyValues")) + .uri(URI.create(contextBrokerUrlForCommands() + "/op/update")) .header("Content-Type", "application/json") .header(CustomHeader.FIWARE_SERVICE, getTenant()) .POST(HttpRequest.BodyPublishers.ofString(updateOrCreateEntityRequest.asJson())).build();