diff options
author | leventecsanyi <levente.csanyi@est.tech> | 2024-07-24 15:42:32 +0200 |
---|---|---|
committer | leventecsanyi <levente.csanyi@est.tech> | 2024-07-25 17:39:52 +0200 |
commit | 7f49c706b6fba519d34099b08450b884d53c798b (patch) | |
tree | 567832a5b528978f28b9629df9641021f56ed241 /dmi-service/src/main/java | |
parent | 477405c7b9e86061cdc674efb882293a18182606 (diff) |
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 <levente.csanyi@est.tech>
Change-Id: Ib7aa90da2ec53dd523740ad267919fd2e709e937
Diffstat (limited to 'dmi-service/src/main/java')
-rw-r--r-- | dmi-service/src/main/java/org/onap/cps/ncmp/dmi/datajobs/rest/controller/DmiDatajobsRestController.java | 19 |
1 files changed, 17 insertions, 2 deletions
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<Void> getDataJobStatus(final String requestId, + final String dataProducerJobId, + final String dataProducerId) { + return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); + } } |