Comprehensive documentation for the Learning Management System API
All API requests use the base URL defined in the Postman environment variable:
{{base_url}} - Default: http://localhost:8000
Most endpoints require authentication using a Bearer token. After logging in, the token should be stored in the Postman environment variable:
{{token}} - Your JWT authentication token
Content-Type: application/json{
"name": "John Doe",
"email": "john@example.com",
"password": "password123",
"role": "student"
}
Content-Type: application/json{
"email": "user@example.com",
"password": "password123"
}
Contains JWT token to be used for authenticated requests
Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Content-Type: application/json{
"name": "Updated Name",
"email": "updated@example.com"
}
Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Content-Type: application/json{
"answer_id": 123
}
Authorization: Bearer {{token}}Content-Type: application/json{
"time_spent": 45
}
Authorization: Bearer {{token}}Authorization: Bearer {{token}}Content-Type: application/json{
"reason": "Incorrect information",
"details": "The question contains factually incorrect information."
}
Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Content-Type: application/json{
"source": "social_media",
"details": "Facebook ad"
}
Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}Authorization: Bearer {{token}}The Postman collection uses the following environment variables:
base_url - The base URL for the API (default: http://localhost:8000)token - The JWT authentication token received after loginbase_url variabletoken variable with the received JWT tokenNote: Make sure to update the token environment variable after logging in to access protected endpoints.