aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest/docs
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2020-11-30 09:45:09 +0200
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>2020-11-30 09:51:28 +0200
commit828136eb69a7b53939083b25f7c18a9ccb865376 (patch)
tree62ba4f9edac9ccb0ca209fd527a7f847b301fba0 /cps-rest/docs
parente731118eca0540792a140803f18c298fb3be132d (diff)
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 <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-rest/docs')
-rwxr-xr-xcps-rest/docs/api/swagger/openapi.yml40
1 files changed, 25 insertions, 15 deletions
diff --git a/cps-rest/docs/api/swagger/openapi.yml b/cps-rest/docs/api/swagger/openapi.yml
index 0c7c83c561..56a012ffe0 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