From 828136eb69a7b53939083b25f7c18a9ccb865376 Mon Sep 17 00:00:00 2001 From: Ruslan Kashapov Date: Mon, 30 Nov 2020 09:45:09 +0200 Subject: REST level exception handling cleanup - removed direct handling of persistence exceptions - error message model is now described via OpenAPI config Issue-ID: CPS-79 Change-Id: Ib460b020ae9c650e1f81b46ab01dab641c953170 Signed-off-by: Ruslan Kashapov --- cps-rest/docs/api/swagger/openapi.yml | 40 ++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 15 deletions(-) (limited to 'cps-rest/docs/api/swagger') diff --git a/cps-rest/docs/api/swagger/openapi.yml b/cps-rest/docs/api/swagger/openapi.yml index 0c7c83c56..56a012ffe 100755 --- a/cps-rest/docs/api/swagger/openapi.yml +++ b/cps-rest/docs/api/swagger/openapi.yml @@ -364,18 +364,28 @@ paths: description: Not Found content: {} components: - schemas: - Anchor: - type: object - title: Anchor - required: - - anchorName - - namespace - - revision - properties: - anchorName: - type: string - namespace: - type: string - revision: - type: string \ No newline at end of file + schemas: + ErrorMessage: + type: object + title: Error + properties: + status: + type: string + message: + type: string + details: + type: string + Anchor: + type: object + title: Anchor + required: + - anchorName + - namespace + - revision + properties: + anchorName: + type: string + namespace: + type: string + revision: + type: string -- cgit 1.2.3-korg