summaryrefslogtreecommitdiff
path: root/opendc-api-spec.yml
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-30 21:37:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:48 +0200
commitc8c6519551cef8b82b55e3e5866b35156c89e6b1 (patch)
treeb378c112bfb1c5f08b23844fc8103ede64b3b36d /opendc-api-spec.yml
parent3bdfd4dafbe56872dfa00866e04780fa1d20b033 (diff)
Added authorizations endpoint for prefabs
Diffstat (limited to 'opendc-api-spec.yml')
-rw-r--r--opendc-api-spec.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/opendc-api-spec.yml b/opendc-api-spec.yml
index 671d4760..f195983b 100644
--- a/opendc-api-spec.yml
+++ b/opendc-api-spec.yml
@@ -701,6 +701,20 @@ paths:
description: Forbidden from deleting Prefab.
'404':
description: Prefab not found.
+ '/prefabs/authorizations':
+ get:
+ tags:
+ - prefabs
+ description: Get all Prefabs the user has rights to view.
+ responses:
+ '200':
+ description: Successfully retrieved prefabs the user is authorized on.
+ schema:
+ $ref: '#/definitions/Prefab'
+ '400':
+ description: Missing or incorrectly typed parameter.
+ '404':
+ description: Prefab or userId not found
definitions:
Scheduler: