From c8c6519551cef8b82b55e3e5866b35156c89e6b1 Mon Sep 17 00:00:00 2001 From: jc0b Date: Thu, 30 Jul 2020 21:37:44 +0200 Subject: Added authorizations endpoint for prefabs --- opendc-api-spec.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'opendc-api-spec.yml') 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: -- cgit v1.2.3