curl -X POST https://api.yourapp.com/api/mock_interview/questions \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "job_description": "Senior Python Developer with ML experience", "question_count": 8, "variation_seed": "focus_on_scalability" }'
{ "success": true, "question_count": 8, "questions": [ { "question": "Describe how you would architect a scalable ML pipeline for real-time predictions", "type": "technical" }, { "question": "Tell me about a time when you optimized a slow Python application", "type": "behavioral" }, { "question": "Walk me through your experience with distributed systems", "type": "project-based" } ]}
API Reference
Interview Endpoints
Adaptive interview session management and question generation
{ "success": true, "question_count": 8, "questions": [ { "question": "Describe how you would architect a scalable ML pipeline for real-time predictions", "type": "technical" }, { "question": "Tell me about a time when you optimized a slow Python application", "type": "behavioral" }, { "question": "Walk me through your experience with distributed systems", "type": "project-based" } ]}
{ "success": true, "evaluation": { "score": 85, "grade": "A", "strengths": "Clear comparison of REST and GraphQL, mentioned key differences like endpoint structure and data fetching", "improvements": "Could expand on use cases and performance trade-offs", "ideal_answer": "REST uses multiple endpoints for different resources, while GraphQL provides a single endpoint..." }}
{ "success": true, "answer": "A binary search tree (BST) is a node-based data structure where each node has at most two children...", "sources": [ {"text": "BST definition...", "_score": 0.92}, {"text": "BST operations...", "_score": 0.87} ]}
{ "success": true, "evaluation": { "is_correct": true, "score": 95, "feedback": "Great solution! Proper use of GROUP BY and ORDER BY. Consider adding column aliases for clarity." }}