From 9945133851dad8f533adcc331b33aca451b0decc Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Tue, 9 Jun 2020 08:05:53 -0400 Subject: [PATCH] Add return types to OpenAPI spec GET methods Define response type of Object so GET methods can return values. TODO: define schema for charts and values. Signed-off-by: Lott, Christopher (cl778h) Change-Id: Idb080fdff72a5ac09f54515b4cec833c988486d3 --- .../xapp_onboarder/xapp-onboarder-api.yaml | 30 +++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/xapp_onboarder/xapp_onboarder/xapp-onboarder-api.yaml b/xapp_onboarder/xapp_onboarder/xapp-onboarder-api.yaml index 2774976..28b48f9 100644 --- a/xapp_onboarder/xapp_onboarder/xapp-onboarder-api.yaml +++ b/xapp_onboarder/xapp_onboarder/xapp-onboarder-api.yaml @@ -37,7 +37,10 @@ paths: responses: 200: description: Get helm chart list OK - content: {} + content: + application/json: + schema: + type: object 500: description: Get helm chart list failed content: @@ -60,7 +63,10 @@ paths: responses: 200: description: Get helm chart OK - content: {} + content: + application/json: + schema: + type: object 500: description: Get helm chart failed content: @@ -88,7 +94,10 @@ paths: responses: 200: description: Get helm chart package OK - content: {} + content: + application/json: + schema: + type: object 500: description: Get helm chart package failed content: @@ -117,7 +126,10 @@ paths: responses: 200: description: Get helm chart values.yaml OK - content: {} + content: + application/json: + schema: + type: object 500: description: Get helm chart values.yaml failed content: @@ -276,7 +288,13 @@ components: responses: MaskError: description: When any error occurs on mask - content: {} + content: + application/json: + schema: + type: object ParseError: description: When a mask can't be parsed - content: {} + content: + application/json: + schema: + type: object -- 2.16.6