From 7f49c706b6fba519d34099b08450b884d53c798b Mon Sep 17 00:00:00 2001 From: leventecsanyi Date: Wed, 24 Jul 2024 15:42:32 +0200 Subject: Added REST endpoint for data job status - extended opanapi - added not-implemented http error for new endpoint - added testware Issue-ID: CPS-2295 Signed-off-by: leventecsanyi Change-Id: Ib7aa90da2ec53dd523740ad267919fd2e709e937 --- .../rest/controller/DmiDatajobsRestController.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'dmi-service/src/main/java/org/onap') diff --git a/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestController.java b/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestController.java index bbc1c20d..8cf9f1fb 100644 --- a/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestController.java +++ b/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestController.java @@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.RestController; @RestController public class DmiDatajobsRestController implements DmiDatajobApi { /** - * * This method is not implemented for ONAP DMI plugin. + * This method is not implemented for ONAP DMI plugin. * * @param requestId Identifier for the overall Datajob (required) * @param subjobReadRequest Operation body (optional) @@ -46,7 +46,7 @@ public class DmiDatajobsRestController implements DmiDatajobApi { } /** - * * This method is not implemented for ONAP DMI plugin. + * This method is not implemented for ONAP DMI plugin. * * @param requestId Identifier for the overall Datajob (required) * @param subjobWriteRequest Operation body (optional) @@ -57,4 +57,19 @@ public class DmiDatajobsRestController implements DmiDatajobApi { final SubjobWriteRequest subjobWriteRequest) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } + + /** + * This method is not implemented for ONAP DMI plugin. + * + * @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) + * @return ResponseEntity(Void) response entity indicating the method is not implemented + */ + @Override + public ResponseEntity getDataJobStatus(final String requestId, + final String dataProducerJobId, + final String dataProducerId) { + return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); + } } -- cgit 1.2.3-korg