Skip to content

Returns the next question of the quiz for the currently answering user.​

GET
/api/users/current/quiz-sessions/{quizId}/question

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

quizId*
Type
integer
Required
Minimum
1

Query Parameters

isTest
Type
boolean
Default
false

Responses​

Success.

application/json
JSON
{
  
"question": {
  
  
"id": 1,
  
  
"text": "You are at a store for a pickup. What should you do?",
  
  
"durationInSeconds": 60,
  
  
"wikilink": "https://wiki.foodsharing.de/some_page",
  
  
"failurePoints": 2,
  
  
"isMandatory": false,
  
  
"answers": [
  
  
  
{
  
  
  
  
"id": 1,
  
  
  
  
"text": "Take every thing I see with me.",
  
  
  
  
"explanation": "You should not do that. Obviously.",
  
  
  
  
"answerRating": 0
  
  
  
}
  
  
],
  
  
"commentCount": 0
  
},
  
"questionAge": 10,
  
"timedOut": false
}

Playground​

Authorization
Variables
Key
Value

Samples​