services:
netconf-pnp-simulator:
- image: nexus3.onap.org:10001/onap/integration/simulators/netconf-pnp-simulator:2.8.6
+ image: blueonap/netconf-pnp-simulator:v2.8.6
container_name: netconf-simulator
restart: always
ports:
responses:
"501":
$ref: '#/components/responses/NotImplemented'
- /v1/dataJob/{requestId}/dataProducerJob/{dataProducerJobId}/result:
+ /v1/cmwriteJob/dataProducer/{dataProducerId}/dataProducerJob/{dataProducerJobId}/result:
get:
description: Retrieve the result of a data job.
operationId: getDataJobResult
parameters:
- - $ref: '#/components/parameters/requestIdInPath'
+ - $ref: '#/components/parameters/dataProducerIdInPath'
- $ref: '#/components/parameters/dataProducerJobIdInPath'
- - $ref: '#/components/parameters/dataProducerIdInQuery'
- $ref: '#/components/parameters/destinationInQuery'
tags:
- dmi-datajob
/**
* This method is not implemented for ONAP DMI plugin.
*
- * @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 ResponseEntity Response entity indicating the method is not implemented
*/
@Override
- public ResponseEntity<Void> getDataJobResult(final String requestId,
+ public ResponseEntity<Void> getDataJobResult(final String dataProducerId,
final String dataProducerJobId,
- final String dataProducerId,
final String destination) {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
def 'get result request should return 501 HTTP Status' () {
given: 'URL to get the result of a data job'
- def getStatus = "${basePathV1}/dataJob/some-identifier/dataProducerJob/some-producer-job-identifier/result?dataProducerId=some-data-producer-identifier&destination=some-destination"
+ def getStatus = "${basePathV1}/cmwriteJob/dataProducer/some-identifier/dataProducerJob/some-producer-job-identifier/result?destination=some-destination"
when: 'the request is performed'
def response = mvc.perform(
get(getStatus)
/**
* 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"));
}
example: some-producer-job-identifier
type: string
style: simple
+ - description: Identifier for the data producer
+ in: query
+ name: dataProducerId
+ required: true
+ schema:
+ example: some-data-producer-identifier
+ type: string
+ style: form
responses:
"501":
content:
description: Not Implemented
tags:
- dmi-datajob
- /v1/dataJob/{requestId}/dataProducerJob/{dataProducerJobId}/result:
+ /v1/cmwriteJob/dataProducer/{dataProducerId}/dataProducerJob/{dataProducerJobId}/result:
get:
description: Retrieve the result of a data job.
operationId: getDataJobResult
parameters:
- - description: Identifier for the overall Datajob
+ - description: Identifier for the data producer
in: path
- name: requestId
+ name: dataProducerId
required: true
schema:
- example: some-identifier
+ example: some-data-producer-identifier
type: string
style: simple
- description: Identifier for the data producer job
type: string
dataJobId:
description: Identifier for the overall Data Job
- example: my-data-producer-identifier
+ example: my-data-job-identifier
type: string
data:
example: