XML content support on Get delta between two anchors within a given dataspace 18/141618/103
authorRudrangi Anupriya <ra00745022@techmahindra.com>
Tue, 12 Aug 2025 08:51:19 +0000 (14:21 +0530)
committerGM001016278 <gourav.malviya@techmahindra.com>
Sat, 14 Feb 2026 06:17:26 +0000 (11:47 +0530)
commit66bdcdc8cfa116e338373ee78c3d472076db781b
tree2d396fde45b0b27b9ed18d679535757a9f6d889d
parent97f967f534697b5c7e023dded993e82ed6283c8d
XML content support on Get delta between two anchors within a given dataspace

Here to bring Support for XML content on Get delta between two anchors within a given dataspace

- Add deltaReportSampleXml Example in component.yaml
- Add ContentTypeInheader in cpsDataV2.yml to support application/xml in Delta
- Add contentTypeInHeader parameter to accept xml in DataRestController.java
- Implemented Logic to convert deltaReport to XML in XmlFileUtils.java
- written testcase for above changes made

Issue-ID: CPS-2452
Change-Id: Iff7fab66ddcc03703255123c6d5c2eade0e7cb4a
Signed-off-by: GM001016278 <gourav.malviya@techmahindra.com>
15 files changed:
cps-rest/docs/openapi/components.yml
cps-rest/docs/openapi/cpsDelta.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
cps-rest/src/main/java/org/onap/cps/rest/controller/DeltaRestController.java
cps-rest/src/main/java/org/onap/cps/rest/controller/QueryRestController.java
cps-rest/src/test/groovy/org/onap/cps/rest/controller/DeltaRestControllerSpec.groovy
cps-rest/src/test/groovy/org/onap/cps/rest/exceptions/CpsRestExceptionHandlerSpec.groovy
cps-service/pom.xml
cps-service/src/main/java/org/onap/cps/utils/XmlObjectMapper.java [new file with mode: 0644]
cps-service/src/main/java/org/onap/cps/utils/XmlUtils.java [moved from cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java with 91% similarity]
cps-service/src/main/java/org/onap/cps/utils/YangParserHelper.java
cps-service/src/main/java/org/onap/cps/utils/deltareport/DeltaReportWrapper.java [new file with mode: 0644]
cps-service/src/test/groovy/org/onap/cps/utils/XmlObjectMapperSpec.groovy [new file with mode: 0644]
cps-service/src/test/groovy/org/onap/cps/utils/XmlUtilsSpec.groovy [moved from cps-service/src/test/groovy/org/onap/cps/utils/XmlFileUtilsSpec.groovy with 95% similarity]
integration-test/src/test/groovy/org/onap/cps/integration/base/CpsIntegrationSpecBase.groovy