Verified Commit 7259d007 authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add myCourseStats


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent b9af6d33
......@@ -1178,6 +1178,44 @@ paths:
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/courses/{courseID}/stats:
get:
operationId: myCourseStats
summary: The user Statistics for the course
tags:
- course
parameters:
- $ref: '#/components/parameters/CourseID'
security:
- userBearer: []
responses:
'200':
description: The user statistics
content:
application/json:
schema:
type: object
properties:
sessionCount:
type: number
format: int32
description: The number of sessions in this course the user has answered a question in
answeredQuestions:
type: number
format: int32
description: The number of questions in this course the user has answered
correctQuestions:
type: number
format: int32
description: The number of questions in this course the user has answered correctly
'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