Make Content-Type header default to JSON for CPS APIs 30/139530/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 22 Nov 2024 09:20:03 +0000 (09:20 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 22 Nov 2024 10:19:20 +0000 (10:19 +0000)
commitd378e7b4321bf940424079440461eb0b874ad096
tree7d208329ce03aeb339bdd89644b6cdb72e29a035
parent225626a21199cbb8fbab976169785313b3aeceb7
Make Content-Type header default to JSON for CPS APIs

Recent changes for XML support have made Content-Type header
mandatory, where before it was not. This change makes CPS
default to JSON if Content-Type is not specified.

Issue-ID: CPS-2517
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic3718bfe7aedd6fe9dbd978f520179b184c9c932
cps-rest/docs/openapi/components.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
cps-rest/src/main/java/org/onap/cps/rest/controller/QueryRestController.java
cps-rest/src/test/groovy/org/onap/cps/rest/controller/DataRestControllerSpec.groovy
docs/api/swagger/cps/openapi.yaml