Skip to content

GET /api/quiz/{quizId}

GET
/api/quiz/{quizId}

Authorizations

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

Parameters

Path Parameters

quizId*
Typestring
Required

Responses

Success
JSON
{
"id": 1,
"name": "Foodsaver Quiz",
"description": "This is the description of this quiz.",
"isDescriptionHtmlEncoded": true,
"maxFailurePointsToSucceed": 2,
"questionCountTimed": 10,
"questionCountUntimed": 20
}
Authorization
api_key
Variables
Key
Value
quizId*
cURL
curl -X GET \
'http://localhost/api/quiz/{quizId}'

Samples

cURL
curl -X GET http://localhost/api/quiz/{quizId}
JavaScript
fetch("http://localhost/api/quiz/{quizId}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/quiz/{quizId}");
Python
import requests
response = requests.get("http://localhost/api/quiz/{quizId}")
print(response.json())