Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/whitiue/logiMathApp/llms.txt

Use this file to discover all available pages before exploring further.

Quizzes are the core content unit in LogiMath. Each quiz belongs to a subject area, carries a difficulty rating, and contains one or more questions. The quizzes table is fully defined in the database layer, and the frontend api_services.py module calls GET /quizzes to load the quiz list — however, this endpoint is not currently implemented in mainApi.py. The backend only defines question-scoped routes under /quizzes/{quiz_id}/questions. This page documents the data model and the current state of the implementation accurately.

Implementation status

GET /quizzes and POST /quizzes are not implemented in the backend (mainApi.py). The frontend calls GET /quizzes via api_services.py, but the server will return a 404 Not Found response until these routes are added. Only question endpoints under /quizzes/{quiz_id}/questions are currently active.
The following routes exist in mainApi.py that relate to quizzes:
MethodPathStatus
GET/quizzesNot implemented
POST/quizzesNot implemented
GET/quizzes/{quiz_id}/questionsImplemented — see Questions
POST/quizzes/{quiz_id}/questionsImplemented — see Questions

Quiz data model

The Quiz SQLAlchemy model is defined in models.py and maps to the quizzes table. The QuizResponse Pydantic schema (defined in mainApi.py) exposes the following fields:
id
integer
required
Auto-incremented primary key.
title
string
required
Human-readable title for the quiz (e.g., “Introduction to Logic”).
subject
string
required
Subject category the quiz belongs to. See supported values below.
difficulty
string
required
Difficulty level used to categorize quizzes for learners.
created_at
datetime
ISO 8601 timestamp set automatically when the record is created. Stored in the database but not included in QuizResponse.

Supported subjects

The LogiMath platform supports the following subject values for quizzes:
  • Logic
  • Mathematics
  • Physics
  • Chemistry
  • Programming
The subject and difficulty fields are free-form strings in the current schema — there is no enum constraint enforced at the database level. The values above reflect the subjects supported by the frontend application.

Build docs developers (and LLMs) love