Issue Title: Implement Job Status Management Functionality
Issue Description:
As a client, I want to manage the status of my job postings so that I can track the progress of each job and update their statuses accordingly. This functionality should allow clients to change the status of their jobs based on their current state.
Tasks:
-
Update Job Status:
- Create an endpoint in the JobController to allow clients to update the status of their job postings.
- The status should be limited to the following options:
Open
In Progress
Completed
Cancelled
-
Get Job Status:
- Create an endpoint to retrieve the current status of a specific job based on the job ID.
Acceptance Criteria:
-
Update Job Status:
-
Get Job Status:
Endpoint Specifications:
-
Update Job Status:
- Method:
PUT
- URL:
/jobs/{jobId}/status
- Request Body Example:
{
"status": "Completed"
}
-
Get Job Status:
- Method:
GET
- URL:
/jobs/{jobId}/status
Issue Title: Implement Job Status Management Functionality
Issue Description:
As a client, I want to manage the status of my job postings so that I can track the progress of each job and update their statuses accordingly. This functionality should allow clients to change the status of their jobs based on their current state.
Tasks:
Update Job Status:
OpenIn ProgressCompletedCancelledGet Job Status:
Acceptance Criteria:
Update Job Status:
PUTrequest to/jobs/{jobId}/statusto update the job status.Get Job Status:
GETrequest to/jobs/{jobId}/statusto retrieve the current status of the job.Endpoint Specifications:
Update Job Status:
PUT/jobs/{jobId}/status{ "status": "Completed" }Get Job Status:
GET/jobs/{jobId}/status