Skip to content

Commit 8c6d6a5

Browse files
committed
add unauthorized database as response for open api
1 parent 40cfd8d commit 8c6d6a5

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.factory/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"enabledPlugins": {
3+
"core@factory-plugins": true
4+
}
5+
}

docs/api/components/responses.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Unauthorized:
2121
application/json:
2222
schema:
2323
$ref: ./schemas.yaml#/HTTP-Error
24+
Unauthorized-database:
25+
description: User does not have access to the database resource, or database resource does not exist
26+
content:
27+
application/json:
28+
schema:
29+
$ref: ./schemas.yaml#/HTTP-Error
2430
Conflict:
2531
description: Resource already exists under that name
2632
content:

0 commit comments

Comments
 (0)