From d378e7b4321bf940424079440461eb0b874ad096 Mon Sep 17 00:00:00 2001 From: danielhanrahan <daniel.hanrahan@est.tech> Date: Fri, 22 Nov 2024 09:20:03 +0000 Subject: 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 --- docs/api/swagger/cps/openapi.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'docs/api/swagger') 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 -- cgit