From 78e1d0616474d50d1b3d156e588c6cea9cba783d Mon Sep 17 00:00:00 2001 From: mpriyank Date: Fri, 8 Apr 2022 15:12:22 +0530 Subject: 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 --- openapi/components.yml | 16 +++++++++++++++- openapi/openapi.yml | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'openapi') 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: -- cgit 1.2.3-korg