Verified Commit 356df41c authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add myStatistics route


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent b675df43
......@@ -1172,6 +1172,42 @@ paths:
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
/api/users/me/stats:
get:
operationId: myStats
summary: Gets statistics about the current user
tags:
- user
security:
- userBearer: []
responses:
'200':
description: Statistics about the current user
content:
application/json:
schema:
type: object
properties:
courseParticipantCount:
type: number
format: int32
description: The number of courses the user is a participant in
sessionCount:
type: number
format: int32
description: The number of sessions the user has answered a question in
answeredQuestions:
type: number
format: int32
description: The number of questions the user has answered
correctQuestions:
type: number
format: int32
description: The number of questions the user has answered correctly
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
/api/users/me/courses:
get:
operationId: listMyCourses
......
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