Verified Commit 8782b9bf authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add add/remove all admins route


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent 7437e04f
......@@ -1312,6 +1312,49 @@ paths:
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/courses/{courseID}/admins/all:
post:
operationId: addAllToAdmin
summary: Adds all as Course Admin
tags:
- course
parameters:
- $ref: '#/components/parameters/CourseID'
security:
- userBearer: []
responses:
'200':
$ref: '#/components/responses/Ok'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
'409':
$ref: '#/components/responses/ConflictError'
delete:
operationId: removeAllAdmins
summary: Removes all Couse Admins
tags:
- course
parameters:
- $ref: '#/components/parameters/CourseID'
security:
- userBearer: []
responses:
'200':
$ref: '#/components/responses/Ok'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/courses/{courseID}/stats:
get:
operationId: myCourseStats
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment