From e0873dde9816543a34818c1509b1aaa1c195a875 Mon Sep 17 00:00:00 2001 From: JosephKeenan Date: Fri, 28 Jan 2022 11:22:22 +0000 Subject: [TECHDEBT] Align CPS NCMP REST API Specification - Updated ncmp.yml to align implementation with specification - Added new Exception classes to differentiate between server NCMP issues and client based NCMP issues - Added 500 error to specification - To be merged after https://gerrit.onap.org/r/c/cps/+/126848 - Added excpetion handlers for SerNcmpException & DmiRequestException Issue-ID: CPS-823 Signed-off-by: JosephKeenan Change-Id: If1c9c6c29c6ea2daa07753d7f766ef15c1ba4ca0 --- cps-ncmp-rest/docs/openapi/components.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cps-ncmp-rest/docs/openapi/components.yaml') diff --git a/cps-ncmp-rest/docs/openapi/components.yaml b/cps-ncmp-rest/docs/openapi/components.yaml index 021a79037..22453f367 100644 --- a/cps-ncmp-rest/docs/openapi/components.yaml +++ b/cps-ncmp-rest/docs/openapi/components.yaml @@ -382,3 +382,13 @@ components: NoContent: description: No Content content: {} + InternalServerError: + description: Internal Server Error + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorMessage" + example: + status: 500 + message: Internal Server Error + details: Internal Server Error occurred -- cgit 1.2.3-korg