From 2b4c48824947478f12c7b2e7b962aeb6b46ae4fc Mon Sep 17 00:00:00 2001 From: arpitsingh Date: Fri, 3 Mar 2023 21:38:57 +0530 Subject: CPS-1526 Fix response message for PATCH operation - Fixed the Response code and message when trying to update multiple data trees at once - Response code changed to 400 - Since the patch operation across multiple data trees is not supported when xpath is set to root node xpath, appropriate message is returned in response - Existing functionality of updating one data node with root node xpath remains as it is. - Updated API documentation and release notes Issue-ID: CPS-1526 Signed-off-by: arpitsingh Change-Id: I5d25a06bb5d407316ccfb2f85877cbe56a9f6f31 --- docs/api/swagger/cps/openapi.yaml | 4 ++-- docs/release-notes.rst | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/api/swagger/cps/openapi.yaml b/docs/api/swagger/cps/openapi.yaml index edbf878d3d..57b996206d 100644 --- a/docs/api/swagger/cps/openapi.yaml +++ b/docs/api/swagger/cps/openapi.yaml @@ -1720,8 +1720,8 @@ paths: tags: - cps-data summary: Update node leaves - description: Update a data node leaves for a given dataspace and anchor and - a parent node xpath + description: Update a data node leaves for a given dataspace and anchor and a parent node xpath. This + operation is currently supported for one top level data node only. operationId: updateNodeLeaves parameters: - name: apiVersion diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 12e485aae8..d52e72991f 100755 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -39,7 +39,7 @@ Release Data Bug Fixes --------- 3.2.6 - - None + - `CPS-1526 `_ Fix response message for PATCH operation Features -------- @@ -229,6 +229,9 @@ Known Limitations, Issues and Workarounds For upgrading, CPS uses Liquibase for database upgrades. CPS/NCMP currently only supports upgrading from Liquibase changelog 11 to Liquibase changelog 16. This is from commit CPS-506: List all known modules and revision to CPS-1312: Default CMHandles to READY during upgrade or from ONAP release Honolulu to Kohn. +CPS core Patch operation currently supports updating data of one top level data node. When performing Patch on multiple top level data nodes at once +a 400 Bad Request is sent as response. This is part of commit CPS-1526. + .. ==================== .. * * * KOHN * * * .. ==================== -- cgit 1.2.3-korg