aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-11-22 09:20:03 +0000
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-11-22 10:19:20 +0000
commitd378e7b4321bf940424079440461eb0b874ad096 (patch)
tree7d208329ce03aeb339bdd89644b6cdb72e29a035 /docs/api
parent225626a21199cbb8fbab976169785313b3aeceb7 (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 'docs/api')
-rw-r--r--docs/api/swagger/cps/openapi.yaml21
1 files changed, 14 insertions, 7 deletions
diff --git a/docs/api/swagger/cps/openapi.yaml b/docs/api/swagger/cps/openapi.yaml
index 3b6bd43d6c..812a2e4e60 100644
--- a/docs/api/swagger/cps/openapi.yaml
+++ b/docs/api/swagger/cps/openapi.yaml
@@ -1165,8 +1165,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -1363,8 +1364,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -1490,8 +1492,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -1617,8 +1620,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -1810,8 +1814,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -2286,8 +2291,9 @@ paths:
- description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml
@@ -2591,8 +2597,9 @@ components:
description: Content type in header
in: header
name: Content-Type
- required: true
+ required: false
schema:
+ default: application/json
enum:
- application/json
- application/xml