-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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:
OpenIn ProgressCompletedCancelled
-
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:
- Clients should be able to make a
PUTrequest to/jobs/{jobId}/statusto update the job status. - Return 200 OK if the update is successful or 404 Not Found if the job does not exist.
- Return 400 Bad Request if the provided status is invalid.
- Clients should be able to make a
-
Get Job Status:
- Clients should be able to make a
GETrequest to/jobs/{jobId}/statusto retrieve the current status of the job. - Return 200 OK with the job status or 404 Not Found if the job does not exist.
- Clients should be able to make a
Endpoint Specifications:
-
Update Job Status:
- Method:
PUT - URL:
/jobs/{jobId}/status - Request Body Example:
{ "status": "Completed" }
- Method:
-
Get Job Status:
- Method:
GET - URL:
/jobs/{jobId}/status
- Method: