API Verification & Report Screen

REST API & System Test Suite

Live interactive runner for Figure 7.5 (Postman API Tests) and Figure 7.6 (Auth & Database Testing).

POST/api/interview/start1. Start Mock Interview & Generate Questions
Expected: 200

Initializes an interview session and calls Gemini to generate structured technical questions.

Request Body:
{
  "userId": "test-user-dev",
  "type": "Technical Interview",
  "topic": "Java & OOP",
  "difficulty": "Medium",
  "totalQuestions": 3
}
Live Server Response:
// Click "Send Request" to test endpoint live
POST/api/interview/question2. Dynamic Question Generation
Expected: 200

Generates real-time interview questions on any computer science domain.

Request Body:
{
  "topic": "React.js & Fiber Architecture",
  "difficulty": "Hard",
  "count": 2
}
Live Server Response:
// Click "Send Request" to test endpoint live
POST/api/interview/evaluate3. Evaluate Candidate Speech Response
Expected: 200

Assesses a single answer against technical rubrics and assigns scores and improvement tips.

Request Body:
{
  "question": "What is the difference between an interface and an abstract class in Java?",
  "answer": "An interface defines a behavioral contract and supports default methods in Java 8+, while an abstract class can maintain internal state and constructors.",
  "topic": "Java & OOP",
  "difficulty": "Medium"
}
Live Server Response:
// Click "Send Request" to test endpoint live
POST/api/interview/start4. Error Validation Test (Missing Fields)
Expected: 400

Tests API input validation when required parameters are omitted.

Request Body:
{
  "userId": "test-user-invalid"
}
Live Server Response:
// Click "Send Request" to test endpoint live
GET/api/interviews?userId=demo-user-1235. Fetch User Interviews List
Expected: 200

Retrieves all historical interview sessions for a given user identifier.

Request Body:
// No Request Body
Live Server Response:
// Click "Send Request" to test endpoint live