summaryrefslogtreecommitdiffstats
path: root/openapi
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2024-06-05 07:13:43 +0000
committerGerrit Code Review <gerrit@onap.org>2024-06-05 07:13:43 +0000
commit92de0b14a9fca76ce2da53c9533c16d7c17eab5e (patch)
tree053e18f527e5a8b8148250a447c5a2715a8c28ee /openapi
parent3adc1d6bc4400b37c1cb23c0204d7f09d4ff380b (diff)
parentdaf2ba8f11d98b26e871961d1c6bd1b4c5c89aab (diff)
Merge "Implement ACK in DMI Plugin"
Diffstat (limited to 'openapi')
-rw-r--r--openapi/openapi-datajob.yml51
1 files changed, 28 insertions, 23 deletions
diff --git a/openapi/openapi-datajob.yml b/openapi/openapi-datajob.yml
index 8a0f315b..989218d9 100644
--- a/openapi/openapi-datajob.yml
+++ b/openapi/openapi-datajob.yml
@@ -27,7 +27,7 @@ tags:
- description: DMI plugin rest apis
name: dmi-datajob
paths:
- /dmi/v1/readJob/{requestId}:
+ /v1/readJob/{requestId}:
post:
description: Create a read request
operationId: readDataJob
@@ -42,17 +42,9 @@ paths:
tags:
- dmi-datajob
responses:
- "200":
- description: Response for subjob
- content:
- application/json:
- schema:
- type: object
- properties:
- dataProducerJobId:
- type: string
- description: The data job ID.
- /dmi/v1/writeJob/{requestId}:
+ "501":
+ $ref: '#/components/responses/NotImplemented'
+ /v1/writeJob/{requestId}:
post:
description: Create a write request
operationId: writeDataJob
@@ -67,16 +59,9 @@ paths:
tags:
- dmi-datajob
responses:
- "200":
- description: Response for subjob
- content:
- application/json:
- schema:
- type: object
- properties:
- dataProducerJobId:
- type: string
- description: The data job ID.
+ "501":
+ $ref: '#/components/responses/NotImplemented'
+
components:
parameters:
requestIdInPath:
@@ -88,6 +73,16 @@ components:
example: some-identifier
type: string
schemas:
+ ErrorMessage:
+ type: object
+ title: Error
+ properties:
+ status:
+ type: string
+ message:
+ type: string
+ details:
+ type: string
SubjobReadRequest:
type: object
required:
@@ -245,5 +240,15 @@ components:
type: string
Object:
type: object
-
+ responses:
+ NotImplemented:
+ description: Not Implemented
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorMessage'
+ example:
+ status: 501
+ message: Not Implemented
+ details: Method Not Implemented