summaryrefslogtreecommitdiffstats
path: root/openapi
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2022-04-08 15:12:22 +0530
committermpriyank <priyank.maheshwari@est.tech>2022-04-11 19:31:37 +0530
commit78e1d0616474d50d1b3d156e588c6cea9cba783d (patch)
tree8f3c1d9c02be33194207966b0e56a87aeab0181c /openapi
parent08b499572102640cd6d298fec2abf443413803cb (diff)
NCMP Kafka Producer Infrastructure
- Producer configuration and Topic related information. - Accepted topicParameter and request id from NCMP to process async - Replacing Springfox and using Springdoc instead Issue-ID: CPS-829 Change-Id: I369b5ec6c16318220bb218701006918a0bf21419 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'openapi')
-rw-r--r--openapi/components.yml16
-rw-r--r--openapi/openapi.yml2
2 files changed, 17 insertions, 1 deletions
diff --git a/openapi/components.yml b/openapi/components.yml
index c317ba76..fd9e2ff9 100644
--- a/openapi/components.yml
+++ b/openapi/components.yml
@@ -116,6 +116,9 @@ components:
example: my-data
cmHandleProperties:
$ref: '#/components/schemas/cmHandleProperties'
+ requestId:
+ type: string
+ example: uuid-random-id-eg
cmHandleProperties:
type: object
@@ -194,4 +197,15 @@ components:
options: (key1=value1,key2=value1/value2)
sample3:
value:
- options: (key1=10,key2=value2,key3=val31,val32) \ No newline at end of file
+ options: (key1=10,key2=value2,key3=val31,val32)
+ topicParamInQuery:
+ name: topicParamInQuery
+ in: query
+ description: valid topic name passed from client(NCMP).
+ required: false
+ schema:
+ type: string
+ allowReserved: true
+ examples:
+ sample1:
+ value: ncmp-async-m2m \ No newline at end of file
diff --git a/openapi/openapi.yml b/openapi/openapi.yml
index bae76394..6e0e8ae6 100644
--- a/openapi/openapi.yml
+++ b/openapi/openapi.yml
@@ -126,6 +126,7 @@ paths:
- $ref: 'components.yml#/components/parameters/cmHandleInPath'
- $ref: 'components.yml#/components/parameters/resourceIdentifierInQuery'
- $ref: 'components.yml#/components/parameters/optionsParamInQuery'
+ - $ref: 'components.yml#/components/parameters/topicParamInQuery'
requestBody:
description: Operational body
content:
@@ -159,6 +160,7 @@ paths:
- $ref: 'components.yml#/components/parameters/cmHandleInPath'
- $ref: 'components.yml#/components/parameters/resourceIdentifierInQuery'
- $ref: 'components.yml#/components/parameters/optionsParamInQuery'
+ - $ref: 'components.yml#/components/parameters/topicParamInQuery'
requestBody:
content:
application/json: