From 7272f11fa4a3876cf61451a21916a7244c2d045b Mon Sep 17 00:00:00 2001 From: "raviteja.karumuri" Date: Wed, 24 May 2023 18:23:38 +0100 Subject: DMI-Plugin : Update batch endpoint (move url param into rest body) Issue-ID: CPS-1636 Signed-off-by: raviteja.karumuri Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a --- openapi/components.yml | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) (limited to 'openapi/components.yml') diff --git a/openapi/components.yml b/openapi/components.yml index 2bddd8b9..b32130b9 100644 --- a/openapi/components.yml +++ b/openapi/components.yml @@ -49,6 +49,53 @@ components: cmHandleProperties: $ref: '#/components/schemas/cmHandleProperties' + ResourceBatchDataRequest: + type: array + items: + type: object + title: 'ResourceBatchRequest' + properties: + operation: + type: string + example: 'read' + operationId: + description: 'it is recommended that the operationId is unique within the scope of the request' + type: string + example: '12' + datastore: + type: string + example: 'ncmp-datastore:passthrough-operational' + options: + type: string + example: 'some option' + resourceIdentifier: + type: string + example: 'some resource identifier' + cmHandles: + type: array + items: + $ref: '#/components/schemas/cmHandle' + required: + - operation + - operationId + - datastore + - cmHandles + + cmHandle: + type: object + title: 'cmHandle' + properties: + id: + type: string + cmHandleProperties: + additionalProperties: + type: string + example: + id: cmHandle123 + cmHandleProperties: + myProp: some value + otherProp: other value + ModuleResourcesReadRequest: type: object properties: @@ -134,6 +181,7 @@ components: NoContent: description: No Content content: {} + BadRequest: description: Bad Request content: @@ -144,6 +192,7 @@ components: status: 400 message: Bad Request details: The provided request is not valid + NotFound: description: The specified resource was not found content: @@ -154,6 +203,7 @@ components: status: 404 message: Resource Not Found details: The requested resource is not found + ServerError: description: Internal Server Error content: @@ -164,6 +214,7 @@ components: status: 500 message: Internal Server Error details: Internal Server Error occured + NotImplemented: description: Not Implemented content: @@ -174,6 +225,7 @@ components: status: 501 message: Not Implemented details: Method Not Implemented + parameters: cmHandleInPath: name: cmHandle @@ -212,6 +264,7 @@ components: sample3: value: options: (key1=10,key2=value2,key3=val31,val32) + topicParamInQuery: name: topic in: query @@ -223,6 +276,32 @@ components: examples: sample1: value: my-topic-name + + requiredTopicParamInQuery: + name: topic + in: query + description: mandatory topic name passed from client(NCMP). + required: true + schema: + type: string + allowReserved: true + examples: + sample1: + value: + topic: my-topic-name + + requiredRequestIdParamInQuery: + name: requestId + in: query + description: request Id generated by NCMP and sent as an acknowledgement for the client request the same including here. + required: true + schema: + type: string + allowReserved: true + examples: + sample1: + value: 4753fc1f-7de2-449a-b306-a6204b5370b3 + datastoreName: name: datastore-name in: path -- cgit 1.2.3-korg