diff options
author | raviteja.karumuri <raviteja.karumuri@est.tech> | 2023-05-24 18:23:38 +0100 |
---|---|---|
committer | raviteja.karumuri <raviteja.karumuri@est.tech> | 2023-06-01 12:08:20 +0100 |
commit | 7272f11fa4a3876cf61451a21916a7244c2d045b (patch) | |
tree | 18be57cf71e4877da7df5f4b33c011645ad3b60d /openapi/openapi.yml | |
parent | 4679c1c64a88ee65b0f86e14be32a8b82f8da469 (diff) |
DMI-Plugin : Update batch endpoint (move url param into rest body)
Issue-ID: CPS-1636
Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech>
Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a
Diffstat (limited to 'openapi/openapi.yml')
-rw-r--r-- | openapi/openapi.yml | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/openapi/openapi.yml b/openapi/openapi.yml index 24854e9c..4bca4108 100644 --- a/openapi/openapi.yml +++ b/openapi/openapi.yml @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (C) 2021 Nordix Foundation +# Copyright (C) 2021-2023 Nordix Foundation # Modifications Copyright (C) 2022 Bell Canada # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); @@ -150,32 +150,28 @@ paths: '500': $ref: 'components.yml#/components/responses/ServerError' - /v1/ch/batch/data/ds/{datastore-name}: + /v1/data: post: tags: - dmi-plugin - summary: Get a collection of CMHandles - description: Get a collection of cm handles by datastore (not implemented) - operationId: getResourceDataByCmHandles + summary: Get resource data for batch of cm handle ids. + description: Get resource data for batch of cm handle ids by supplied operation details + operationId: getResourceDataForCmHandleBatch parameters: - - $ref: 'components.yml#/components/parameters/datastoreName' - - $ref: 'components.yml#/components/parameters/topicParamInQuery' + - $ref: 'components.yml#/components/parameters/requiredTopicParamInQuery' + - $ref: 'components.yml#/components/parameters/requiredRequestIdParamInQuery' requestBody: - description: Contains collection of cm handles with it's private properties and requestId - content: - application/json: - schema: - type: object - responses: - '200': - description: OK + description: list of operation details content: application/json: schema: - type: object - '400': - $ref: 'components.yml#/components/responses/BadRequest' - '500': - $ref: 'components.yml#/components/responses/ServerError' - '501': - $ref: 'components.yml#/components/responses/NotImplemented'
\ No newline at end of file + $ref: 'components.yml#/components/schemas/ResourceBatchDataRequest' + responses: + '202': + description: Accepted + '400': + $ref: 'components.yml#/components/responses/BadRequest' + '500': + $ref: 'components.yml#/components/responses/ServerError' + '501': + $ref: 'components.yml#/components/responses/NotImplemented'
\ No newline at end of file |