58
58
- BearerAuth : [ ]
59
59
tags :
60
60
- " Authentication"
61
- summary : " Check token"
62
- description : " Checks if a token is valid or expired"
61
+ summary : " Check JWT token validity "
62
+ description : " Checks if a token is valid or expired. "
63
63
responses :
64
64
' 200 ' :
65
65
$ref : ' #/components/responses/OK'
71
71
- BearerAuth : [ ]
72
72
tags :
73
73
- " Authentication"
74
- summary : " Login"
74
+ summary : " Login - create a new JWT token "
75
75
description : " Returns an JWT token which provides authorization for a limited time"
76
76
requestBody :
77
77
required : true
@@ -1320,12 +1320,12 @@ paths:
1320
1320
' /studio/{id} ' :
1321
1321
parameters :
1322
1322
- $ref : ' #/components/parameters/Locale'
1323
- put :
1323
+ post :
1324
1324
security :
1325
1325
- BearerAuth : [ ]
1326
1326
tags :
1327
1327
- Studio
1328
- summary : Update a Studio
1328
+ summary : Update a Studio (only available to studio admins)
1329
1329
parameters :
1330
1330
- $ref : ' #/components/parameters/Uuid'
1331
1331
requestBody :
@@ -1341,8 +1341,7 @@ paths:
1341
1341
Location :
1342
1342
schema :
1343
1343
type : string
1344
- example : >-
1345
- https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
1344
+ example : https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
1346
1345
description : Resource location on server
1347
1346
content :
1348
1347
application/json :
@@ -1370,6 +1369,59 @@ paths:
1370
1369
Content-Language :
1371
1370
$ref : ' #/components/headers/Content-Language'
1372
1371
1372
+ delete :
1373
+ security :
1374
+ - BearerAuth : [ ]
1375
+ tags :
1376
+ - Studio
1377
+ summary : Delete a studio (only available to studio admins)
1378
+ parameters :
1379
+ - $ref : ' #/components/parameters/Uuid'
1380
+ responses :
1381
+ ' 204 ' :
1382
+ description : OK
1383
+ ' 400 ' :
1384
+ $ref : ' #/components/responses/BadRequest'
1385
+ ' 401 ' :
1386
+ $ref : ' #/components/responses/UnauthorizedError'
1387
+ ' 403 ' :
1388
+ $ref : ' #/components/responses/Forbidden'
1389
+ ' 404 ' :
1390
+ $ref : ' #/components/responses/NotFound'
1391
+ ' 406 ' :
1392
+ $ref : ' #/components/responses/NotAcceptable'
1393
+
1394
+ get :
1395
+ tags :
1396
+ - Studio
1397
+ summary : Get studio details (private studios are only available to members)
1398
+ parameters :
1399
+ - $ref : ' #/components/parameters/Uuid'
1400
+ responses :
1401
+ ' 200 ' :
1402
+ description : OK
1403
+ headers :
1404
+ Location :
1405
+ schema :
1406
+ type : string
1407
+ example : https://share.catrob.at/app/studio/63768cf1-5f07-11ea-a2ae-000c292a0f49
1408
+ description : Resource location on server
1409
+ content :
1410
+ application/json :
1411
+ schema :
1412
+ $ref : ' #/components/schemas/StudioResponse'
1413
+ ' 400 ' :
1414
+ $ref : ' #/components/responses/BadRequest'
1415
+ ' 401 ' :
1416
+ $ref : ' #/components/responses/UnauthorizedError'
1417
+ ' 403 ' :
1418
+ $ref : ' #/components/responses/Forbidden'
1419
+ ' 404 ' :
1420
+ $ref : ' #/components/responses/NotFound'
1421
+ ' 406 ' :
1422
+ $ref : ' #/components/responses/NotAcceptable'
1423
+
1424
+
1373
1425
components :
1374
1426
1375
1427
# #############################################
0 commit comments