Skip to content

Commit

Permalink
Get & Delete Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzner committed Aug 31, 2024
1 parent b471fc3 commit b58ef4a
Showing 1 changed file with 59 additions and 7 deletions.
66 changes: 59 additions & 7 deletions catroweb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ paths:
- BearerAuth: [ ]
tags:
- "Authentication"
summary: "Check token"
description: "Checks if a token is valid or expired"
summary: "Check JWT token validity"
description: "Checks if a token is valid or expired."
responses:
'200':
$ref: '#/components/responses/OK'
Expand All @@ -71,7 +71,7 @@ paths:
- BearerAuth: [ ]
tags:
- "Authentication"
summary: "Login"
summary: "Login - create a new JWT token"
description: "Returns an JWT token which provides authorization for a limited time"
requestBody:
required: true
Expand Down Expand Up @@ -1320,12 +1320,12 @@ paths:
'/studio/{id}':
parameters:
- $ref: '#/components/parameters/Locale'
put:
post:
security:
- BearerAuth: [ ]
tags:
- Studio
summary: Update a Studio
summary: Update a Studio (only available to studio admins)
parameters:
- $ref: '#/components/parameters/Uuid'
requestBody:
Expand All @@ -1341,8 +1341,7 @@ paths:
Location:
schema:
type: string
example: >-
https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
example: https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
description: Resource location on server
content:
application/json:
Expand Down Expand Up @@ -1370,6 +1369,59 @@ paths:
Content-Language:
$ref: '#/components/headers/Content-Language'

delete:
security:
- BearerAuth: [ ]
tags:
- Studio
summary: Delete a studio (only available to studio admins)
parameters:
- $ref: '#/components/parameters/Uuid'
responses:
'204':
description: OK
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'406':
$ref: '#/components/responses/NotAcceptable'

get:
tags:
- Studio
summary: Get studio details (private studios are only available to members)
parameters:
- $ref: '#/components/parameters/Uuid'
responses:
'200':
description: OK
headers:
Location:
schema:
type: string
example: https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
description: Resource location on server
content:
application/json:
schema:
$ref: '#/components/schemas/StudioResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'406':
$ref: '#/components/responses/NotAcceptable'


components:

##############################################
Expand Down

0 comments on commit b58ef4a

Please sign in to comment.