Verified Commit 8a8bdd44 authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add course overview route


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent c768e33f
......@@ -1255,6 +1255,50 @@ paths:
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/courses/{courseID}/overview:
get:
operationId: courseOverview
summary: A overview of users and session for the docent
tags:
- course
parameters:
- $ref: '#/components/parameters/CourseID'
- name: showSurveys
in: query
schema:
type: boolean
description: Include survey sessions
security:
- userBearer: []
responses:
'200':
description: The overview
content:
application/json:
schema:
type: object
additionalProperties:
type: object
additionalProperties:
type: boolean
example:
user1:
quiz1: true
quiz2: true
quiz3: true
user2:
quiz1: true
quiz2: false
quiz3: false
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/users/me:
get:
operationId: aboutMe
......
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