diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-05-29 08:52:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-05-29 08:52:22 +0000 |
commit | 325ac091ddea291c5659fa6e803f132a578deb14 (patch) | |
tree | 3b06c9f393e97e54ae26ef7038123cc750df937c /cps-ncmp-rest/docs/openapi/components.yaml | |
parent | acae85ffc8eac8dd919b59b1fc804a1d3743eb0f (diff) | |
parent | f232f30bede7d35c71db2d0201695a1416e37323 (diff) |
Merge "NCMP: Update existing Batch endpoint (Moving url param into rest body)"
Diffstat (limited to 'cps-ncmp-rest/docs/openapi/components.yaml')
-rw-r--r-- | cps-ncmp-rest/docs/openapi/components.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cps-ncmp-rest/docs/openapi/components.yaml b/cps-ncmp-rest/docs/openapi/components.yaml index 7fc1063a12..2781f572f2 100644 --- a/cps-ncmp-rest/docs/openapi/components.yaml +++ b/cps-ncmp-rest/docs/openapi/components.yaml @@ -285,6 +285,43 @@ components: properties: state: $ref: '#/components/schemas/CmHandleCompositeState' + # Batch Request Schemas + ResourceDataBatchRequest: + type: object + title: get resource data for given array of operations + properties: + operations: + type: array + items: + type: object + $ref: '#/components/schemas/BatchOperationDefinition' + description: contains batch request details + BatchOperationDefinition: + required: + - operation + - datastore + - operationId + properties: + operation: + type: string + example: 'read' + operationId: + type: string + example: '12' + datastore: + type: string + example: 'ncmp-datastore:passthrough-operational' + options: + type: string + example: '(fields=schemas/schema)' + resourceIdentifier: + type: string + example: 'parent/child' + targetIds: + type: array + items: + type: string + example: [ "da310eecdb8d44c2acc0ddaae01174b1","c748c58f8e0b438f9fd1f28370b17d47" ] examples: dataSampleRequest: |