Verified Commit 7437e04f authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add remove docent route


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent 6f3c9625
......@@ -1712,6 +1712,35 @@ paths:
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/su/docent/{docentID}:
post:
operationId: suRemoveDocent
summary: Removes a User as docent
tags:
- SuperUser
security:
- userBearer: []
parameters:
- name: username
in: path
required: true
schema:
type: string
responses:
'200':
description: The removed docent
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
components:
schemas:
Quiz:
......
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