Skip to content

[Feat] Implement endpoint for Updating a job #681

@emmanuelTwumasi

Description

@emmanuelTwumasi

Description

The JobController currently lacks an endpoint for updating a job, preventing modifications to existing job records.

Expected Behavior

The JobController should provide an endpoint that allows updating job details based on job ID.

Acceptance Criteria

Update job by ID

  1. The API should accept a valid job ID and updated job details.
  2. The system should update the job information accordingly.
  3. If the job ID does not exist, an appropriate error response should be returned.

Unit Tests

Test 1: Update job with valid ID

  • Test method: testUpdateJob_ValidId
  • Test data: Valid job ID and updated job details
  • Expected result: Job information is successfully updated

Test 2: Update job with invalid ID

  • Test method: testUpdateJob_InvalidId
  • Test data: Non-existent job ID
  • Expected result: Error response indicating job not found

Test 3: Update job with invalid data

  • Test method: testUpdateJob_InvalidData
  • Test data: Valid job ID with incomplete/invalid fields
  • Expected result: Validation error response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions