diff options
author | arpitsingh <as00745003@techmahindra.com> | 2023-03-03 21:38:57 +0530 |
---|---|---|
committer | --global <as00745003@techmahindra.com> | 2023-03-20 16:36:40 +0530 |
commit | 2b4c48824947478f12c7b2e7b962aeb6b46ae4fc (patch) | |
tree | 5fc1b577b416b9d7afab4ac9a750b96b16003409 /cps-rest | |
parent | f0fdc500ec1bfd3b8a477e9cc862dd014828669d (diff) |
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 <as00745003@techmahindra.com>
Change-Id: I5d25a06bb5d407316ccfb2f85877cbe56a9f6f31
Diffstat (limited to 'cps-rest')
-rw-r--r-- | cps-rest/docs/openapi/cpsData.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-rest/docs/openapi/cpsData.yml b/cps-rest/docs/openapi/cpsData.yml index 1d60e1f780..0a032e4be0 100644 --- a/cps-rest/docs/openapi/cpsData.yml +++ b/cps-rest/docs/openapi/cpsData.yml @@ -131,7 +131,8 @@ nodesByDataspaceAndAnchor: '500': $ref: 'components.yml#/components/responses/InternalServerError' patch: - 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. tags: - cps-data summary: Update node leaves |