diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2023-06-15 11:08:54 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2023-06-15 11:08:54 +0100 |
commit | 5cec532ddc9079739d93ef10f1441f8c9fd75c22 (patch) | |
tree | d1cece22ccb148c611b2fed00e6398ce445a75ba /docs/api/swagger/ncmp/openapi.yaml | |
parent | 9474e8f257f9a03c80c01cbf3729cd128a43847b (diff) |
Update release docs
- Also synched up the API changes in openapi yml file
- Step 1 and 2 of the release process
Issue-ID: CPS-1703
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Id47822737df3b89dffddb90413a53cac2b7ced6a
Diffstat (limited to 'docs/api/swagger/ncmp/openapi.yaml')
-rw-r--r-- | docs/api/swagger/ncmp/openapi.yaml | 93 |
1 files changed, 39 insertions, 54 deletions
diff --git a/docs/api/swagger/ncmp/openapi.yaml b/docs/api/swagger/ncmp/openapi.yaml index 5cc443b062..ea9786ef7f 100644 --- a/docs/api/swagger/ncmp/openapi.yaml +++ b/docs/api/swagger/ncmp/openapi.yaml @@ -625,7 +625,7 @@ paths: dmi-response: http-code: 400 body: Bad Request - /v1/batch/data/ds/{datastore-name}: + /v1/data: post: tags: - network-cm-proxy @@ -635,51 +635,6 @@ paths: to identify the relevant messages. operationId: getResourceDataForCmHandleBatch parameters: - - name: datastore-name - in: path - description: The type of the requested data - required: true - schema: - type: string - example: ncmp-datastore:running - - name: resourceIdentifier - in: query - description: The format of resource identifier depend on the associated DMI - Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but - it can really be anything. - required: true - allowReserved: true - schema: - type: string - examples: - sample 1: - value: - resourceIdentifier: \shops\bookstore - sample 2: - value: - resourceIdentifier: "\\shops\\bookstore\\categories[@code=1]" - sample 3: - value: - resourceIdentifier: "parent=shops,child=bookstore" - - name: options - in: query - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ - \ in parenthesis'()'. The format of options parameter depend on the associated\ - \ DMI Plugin implementation." - required: false - allowReserved: true - schema: - type: string - examples: - sample 1: - value: - options: (depth=3) - sample 2: - value: - options: (fields=book) - sample 3: - value: - options: "(depth=2,fields=book/authors)" - name: topic in: query description: mandatory topic parameter in query. @@ -691,18 +646,11 @@ paths: sample 1: value: topic: my-topic-name - - name: include-descendants - in: query - description: Determines if descendants are included in response - required: false - schema: - type: boolean - default: false requestBody: content: application/json: schema: - type: object + $ref: '#/components/schemas/ResourceDataBatchRequest' required: true responses: "200": @@ -1485,6 +1433,43 @@ components: example: Bad Gateway Error Message NCMP dmi-response: $ref: '#/components/schemas/DmiErrorMessage_dmiresponse' + ResourceDataBatchRequest: + title: get resource data for given array of operations + type: object + properties: + operations: + type: array + description: contains batch request details + items: + $ref: '#/components/schemas/BatchOperationDefinition' + BatchOperationDefinition: + required: + - datastore + - operation + - 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 + example: + - da310eecdb8d44c2acc0ddaae01174b1 + - c748c58f8e0b438f9fd1f28370b17d47 + items: + type: string RestModuleReference: title: Module reference details type: object |