-
Notifications
You must be signed in to change notification settings - Fork 2
API Documentation
This document provides information about the APIs exposed by the Job Seeker backend system. These APIs allow you to perform various actions such as managing appointments, consultants, job seekers, and login information.
The Job Seeker backend APIs allow authorized users to manage appointments, consultants, job seekers, and login information. All API endpoints require proper authentication to access.
The base URL for all API endpoints is https://jobseeker-ftq4.onrender.com/api/v1
.
To access the Job Seeker backend APIs, you need to include an authentication token in the request headers.
-
Authorization
: Bearer<token>
Replace <token>
with your valid authentication token.
Endpoint: POST /api/v1/saveAppointment
Create a new appointment.
Request Body:
{
"country": "Country Name",
"category": "Appointment Category",
"consultant": "Consultant Name",
"jobRole": "Job Role",
"name": "Client Name",
"email": "[email protected]",
"date": "2023-08-15T10:00:00",
"approved": false
}
Endpoint: GET /api/v1/getAllAppointments
Retrieve a list of all appointments.
Endpoint: GET /api/v1/getAppointmentById/{id}
Retrieve details of a specific appointment by ID.
Endpoint: DELETE /api/v1/deleteAppointment/{id}
Delete an appointment by ID.
Endpoint: PUT /api/v1/updateAppointment/{id}
Update the approval status of an appointment by ID.
Endpoint: PUT /api/v1/updateAppointment/{id}
Update appointment details by ID.
Endpoint: POST /api/v1/saveConsultant
Create a new consultant.
Request Body:
{
"country": "Country Name",
"jobCategory": "Job Category",
"jobRole": ["Role 1", "Role 2"],
"name": "Consultant Name",
"email": "[email protected]",
"phone": "123-456-7890",
"address": "Consultant Address",
"unavailableDates": ["2023-08-10", "2023-08-11"],
"portfolio": "Consultant Portfolio",
"verified": false
}
Endpoint: GET /api/v1/getAllConsultants
Retrieve a list of all consultants.
Endpoint: GET /api/v1/getConsultant/{email}
Retrieve details of a specific consultant by email.
Endpoint: DELETE /api/v1/deleteConsultantByEmail/{email}
Delete a consultant by email and send an email notification.
Endpoint: PUT /api/v1/updateConsultantByEmail/{email}
Update consultant information by email.
Endpoint: PUT /api/v1/setUnavailableDates/{email}
Update consultant's unavailable dates by email.
Endpoint: POST /api/v1/sendMessage
Send a message as a job seeker.
Request Body:
{
"email": "[email protected]",
"message": "Message content."
}
Endpoint: GET /api/v1/loadJobSeekerRequests
Retrieve a list of all job seeker requests.
Endpoint: GET /api/v1/getJobSeekerById/{id}
Retrieve details of a specific job seeker request by ID.
Endpoint: DELETE /api/v1/deleteMessageRequest/{email}
Delete a job seeker request by email.
Endpoint: PUT /api/v1/updateJobSeeker/{id}
Update job seeker request by ID.
Endpoint: POST /api/v1/addConsultant
Add login information for a new consultant.
Request Body:
{
"email": "[email protected]",
"password": "password123"
}
Endpoint: GET /api/v1/getConsultantByEmail/{email}
Retrieve login information of a consultant by email.
Endpoint: PUT /api/v1/updateAuth/{email}
Update consultant's authentication password by email.
© kavicastelo