Quiz API Documentation
API Endpoints
/api/quizzes/- List all quizzes/api/quizzes/:id/- Get a specific quiz by ID/api/questions/- List all questions/api/questions/:id/- Get a specific question by ID/api/questions/by_quiz/?quiz_id=:id- Get questions for a specific quiz/api/quizzes/counts/- Get counts of quizzes and questions
Frontend Demo
This is a frontend demo of the Quiz API. The API Explorer uses mock data by default, but can be connected to a real Django backend when available.
Backend Setup (When Ready)
When you're ready to connect to a real Django backend:
- Set up the Django project with the provided code
- Import quiz data with
python scripts/import_quiz_data.py path/to/quiz-data.ts - Run migrations and load the quiz data
- In the API Explorer, switch to "Connect to Real API" and enter your backend URL