CPS-1526 Fix response message for PATCH operation 42/133542/13
authorarpitsingh <as00745003@techmahindra.com>
Fri, 3 Mar 2023 16:08:57 +0000 (21:38 +0530)
committer--global <as00745003@techmahindra.com>
Mon, 20 Mar 2023 11:06:40 +0000 (16:36 +0530)
commit2b4c48824947478f12c7b2e7b962aeb6b46ae4fc
tree5fc1b577b416b9d7afab4ac9a750b96b16003409
parentf0fdc500ec1bfd3b8a477e9cc862dd014828669d
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
cps-rest/docs/openapi/cpsData.yml
cps-service/src/main/java/org/onap/cps/api/CpsDataService.java
cps-service/src/main/java/org/onap/cps/api/impl/CpsDataServiceImpl.java
cps-service/src/test/groovy/org/onap/cps/api/impl/CpsDataServiceImplSpec.groovy
docs/api/swagger/cps/openapi.yaml
docs/release-notes.rst