bae13d5503
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/202 Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
22 lines
788 B
YAML
22 lines
788 B
YAML
get:
|
|
summary: Returns a list of all accessible scopes.
|
|
description: Returns the list of all scopes which are visible to the current subject or any of it's assumed roles.
|
|
tags:
|
|
- scopes
|
|
operationId: getListOfScopes
|
|
parameters:
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
content:
|
|
'application/json':
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: 'scope-schemas.yaml#/components/schemas/Scope'
|
|
"401":
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
|
"403":
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|