diff options
author | leventecsanyi <levente.csanyi@est.tech> | 2024-08-05 15:46:59 +0200 |
---|---|---|
committer | leventecsanyi <levente.csanyi@est.tech> | 2024-08-26 12:39:09 +0200 |
commit | 658f4d4786b7f7290d91d3d16e99c405c176d686 (patch) | |
tree | 51e4bedf47b246baabd3e3e462ff8b924f9a22d9 /dmi-stub | |
parent | 636c228c5d646e7c919bc5ce135fa2967b3fef5a (diff) |
Fixed URL for data job result
- fixed opeanapi and stub
- updated pnp simulator image
Issue-ID: CPS-2296
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Change-Id: I6654762256097f9deb8ce40cfc8014bed67cb269
Diffstat (limited to 'dmi-stub')
-rw-r--r-- | dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java index 5218db43..2f026f98 100644 --- a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java +++ b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/DmiRestStubController.java @@ -298,21 +298,19 @@ public class DmiRestStubController { /** * Retrieves the result of a given data job identified by {@code requestId} and {@code dataProducerJobId}. * - * @param requestId Identifier for the overall Datajob (required) - * @param dataProducerJobId Identifier for the data producer job (required) * @param dataProducerId Identifier for the data producer as a query parameter (required) + * @param dataProducerJobId Identifier for the data producer job (required) * @param destination The destination of the results, Kafka topic name or s3 bucket name (required) * @return A ResponseEntity with HTTP status 200 (OK) and the data job's result as an Object. */ - @GetMapping("/v1/dataJob/{requestId}/dataProducerJob/{dataProducerJobId}/result") + @GetMapping("/v1/cmwriteJob/dataProducer/{dataProducerId}/dataProducerJob/{dataProducerJobId}/result") public ResponseEntity<Object> retrieveDataJobResult( - @PathVariable("requestId") final String requestId, + @PathVariable("dataProducerId") final String dataProducerId, @PathVariable("dataProducerJobId") final String dataProducerJobId, - @RequestParam(name = "dataProducerId") String dataProducerId, @RequestParam(name = "destination") String destination) { - log.debug("Received request to retrieve data job result. Request ID: {}, Data Producer Job ID: {}, " + - "Data Producer ID: {}, Destination: {}", - requestId, dataProducerJobId, dataProducerId, destination); + log.debug("Received request to retrieve data job result. Data Producer ID: {}, " + + "Data Producer Job ID: {}, Destination: {}", + dataProducerId, dataProducerJobId, destination); return ResponseEntity.ok(Map.of("result", "some status")); } |