Endpoints
Create Session
Create a new interview session with job details.
Request Parameters
The job title for which the interview is being prepared. Maximum 200 characters.
The company name where the job is located.
Response
Redirects to the upload page for the newly created session.Example Request
Success Response
Error Responses
Returned when required fields are missing or invalid.
Error message describing the validation failure.
- “Job title cannot be empty”
- “Company name cannot be empty”
- “Job title too long (max 200 characters)“
Get Dashboard
Retrieve the user’s dashboard with recent interview sessions.
Response
Returns an HTML page displaying up to 5 most recent sessions.List of recent session objects.
Unique session identifier.
The job title for this session.
The company name for this session.
Timestamp when the session was created.
Extracted CV text if uploaded.
Job description if provided.
Example Request
Example Response Data
Get Landing Page
Retrieve the application landing page.
Response
Returns the landing HTML page for the application.Example Request
Session Object Structure
The Session object represents an interview preparation session:Unique identifier for the session.
Associated user ID (optional, for future authentication).
Job title (max 200 characters).
Company name (max 200 characters).
Extracted text from uploaded CV.
Job description text.
Session creation timestamp.
Error Handling
All endpoints follow standard HTTP status codes:- 200 OK: Successful request
- 302 Found: Successful redirect after POST
- 400 Bad Request: Validation error
- 403 Forbidden: Unauthorized access to session
- 404 Not Found: Session not found
- 500 Internal Server Error: Unexpected server error