Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Job Status Management Functionality #40

Open
5 tasks
AhmedFatthy1040 opened this issue Oct 8, 2024 · 0 comments
Open
5 tasks

Implement Job Status Management Functionality #40

AhmedFatthy1040 opened this issue Oct 8, 2024 · 0 comments

Comments

@AhmedFatthy1040
Copy link
Collaborator

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:

  1. 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
  2. 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 PUT request to /jobs/{jobId}/status to 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.
  • Get Job Status:

    • Clients should be able to make a GET request to /jobs/{jobId}/status to retrieve the current status of the job.
    • Return 200 OK with the job status or 404 Not Found if the job does not exist.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant