summaryrefslogtreecommitdiffstats
path: root/docs/api
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 /docs/api
parent3adc1d6bc4400b37c1cb23c0204d7f09d4ff380b (diff)
parentdaf2ba8f11d98b26e871961d1c6bd1b4c5c89aab (diff)
Merge "Implement ACK in DMI Plugin"HEADmaster
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger/openapi-datajob.yaml53
1 files changed, 37 insertions, 16 deletions
diff --git a/docs/api/swagger/openapi-datajob.yaml b/docs/api/swagger/openapi-datajob.yaml
index b3baa168..e58591e0 100644
--- a/docs/api/swagger/openapi-datajob.yaml
+++ b/docs/api/swagger/openapi-datajob.yaml
@@ -10,7 +10,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
@@ -31,15 +31,19 @@ paths:
$ref: '#/components/schemas/SubjobReadRequest'
description: Operation body
responses:
- "200":
+ "501":
content:
application/json:
+ example:
+ status: 501
+ message: Not Implemented
+ details: Method Not Implemented
schema:
- $ref: '#/components/schemas/readDataJob_200_response'
- description: Response for subjob
+ $ref: '#/components/schemas/ErrorMessage'
+ description: Not Implemented
tags:
- dmi-datajob
- /dmi/v1/writeJob/{requestId}:
+ /v1/writeJob/{requestId}:
post:
description: Create a write request
operationId: writeDataJob
@@ -60,12 +64,16 @@ paths:
$ref: '#/components/schemas/SubjobWriteRequest'
description: Operation body
responses:
- "200":
+ "501":
content:
application/json:
+ example:
+ status: 501
+ message: Not Implemented
+ details: Method Not Implemented
schema:
- $ref: '#/components/schemas/readDataJob_200_response'
- description: Response for subjob
+ $ref: '#/components/schemas/ErrorMessage'
+ description: Not Implemented
tags:
- dmi-datajob
components:
@@ -80,7 +88,28 @@ components:
example: some-identifier
type: string
style: simple
+ responses:
+ NotImplemented:
+ content:
+ application/json:
+ example:
+ status: 501
+ message: Not Implemented
+ details: Method Not Implemented
+ schema:
+ $ref: '#/components/schemas/ErrorMessage'
+ description: Not Implemented
schemas:
+ ErrorMessage:
+ properties:
+ status:
+ type: string
+ message:
+ type: string
+ details:
+ type: string
+ title: Error
+ type: object
SubjobReadRequest:
properties:
dataAcceptType:
@@ -165,14 +194,6 @@ components:
type: object
Object:
type: object
- readDataJob_200_response:
- example:
- dataProducerJobId: dataProducerJobId
- properties:
- dataProducerJobId:
- description: The data job ID.
- type: string
- type: object
SubjobReadRequest_data_inner:
properties:
path: