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 --- dmi-service/openapi/openapi-datajob.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'dmi-service/openapi') diff --git a/dmi-service/openapi/openapi-datajob.yml b/dmi-service/openapi/openapi-datajob.yml index 31a76bbd..68ee3ecc 100644 --- a/dmi-service/openapi/openapi-datajob.yml +++ b/dmi-service/openapi/openapi-datajob.yml @@ -61,6 +61,19 @@ paths: responses: "501": $ref: '#/components/responses/NotImplemented' + /v1/dataJob/{requestId}/dataProducerJob/{dataProducerJobId}/status: + get: + description: Retrieve the status of a specific data job. + operationId: getDataJobStatus + parameters: + - $ref: '#/components/parameters/requestIdInPath' + - $ref: '#/components/parameters/dataProducerJobIdInPath' + - $ref: '#/components/parameters/dataProducerIdInQuery' + tags: + - dmi-datajob + responses: + "501": + $ref: '#/components/responses/NotImplemented' components: parameters: @@ -72,6 +85,22 @@ components: schema: example: some-identifier type: string + dataProducerJobIdInPath: + description: Identifier for the data producer job + in: path + name: dataProducerJobId + required: true + schema: + example: some-producer-job-identifier + type: string + dataProducerIdInQuery: + name: dataProducerId + in: query + description: Identifier for the data producer + required: true + schema: + type: string + example: some-data-producer-identifier schemas: ErrorMessage: type: object -- cgit 1.2.3-korg