Verified Commit 3633c600 authored by Jonas-Ian Kuche's avatar Jonas-Ian Kuche
Browse files

Add session correct route


Signed-off-by: Jonas-Ian Kuche's avatarJonas-Ian Kuche <jonas-ian.kuche@mni.thm.de>
parent 2d4f70b6
......@@ -890,6 +890,35 @@ paths:
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/sessions/{sessionID}/correct/{questionNumber}:
get:
operationId: getCorrect
summary: Gets the correct and given answer to a question
tags:
- session
parameters:
- $ref: '#/components/parameters/SessionID'
- $ref: '#/components/parameters/QuestionNumber'
security:
- sessionBearer: [ ]
responses:
'200':
description: The question with correct answers
content:
application/json:
schema:
type: object
properties:
correct:
$ref: '#/components/schemas/Question'
answered:
$ref: '#/components/schemas/Question'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbidenError'
'404':
$ref: '#/components/responses/NotFoundError'
/api/courses:
post:
operationId: createCourse
......
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