diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-11-22 09:20:03 +0000 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-11-22 10:19:20 +0000 |
commit | d378e7b4321bf940424079440461eb0b874ad096 (patch) | |
tree | 7d208329ce03aeb339bdd89644b6cdb72e29a035 /cps-rest/docs | |
parent | 225626a21199cbb8fbab976169785313b3aeceb7 (diff) |
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
Diffstat (limited to 'cps-rest/docs')
-rw-r--r-- | cps-rest/docs/openapi/components.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml index 728295fd31..1db4185330 100644 --- a/cps-rest/docs/openapi/components.yml +++ b/cps-rest/docs/openapi/components.yml @@ -291,12 +291,13 @@ components: name: Content-Type in: header description: Content type in header + required: false schema: type: string enum: - application/json - application/xml - required: true + default: application/json descendantsInQuery: name: descendants in: query |