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

[feat]update user job #126

Closed
wants to merge 10 commits into from

Conversation

RaphAlemoh
Copy link
Contributor

@RaphAlemoh RaphAlemoh commented Jul 24, 2024

Description

Implement an Api endpoint to update a job post detail, incase of any omission in job details.

Related Issue (Link to Github issue)

Link to Frontend Issue
Link to Backend Issue

These PR is for the update job post new feature

Motivation and Context

Enable updating of a posted job details, incase of any error(typo, etc)

How Has This Been Tested?

  • The endpoint be accessible at api/v1/jobs/:id
  • The endpoint accept HTTP PATCH requests.
  • The endpoint check that the user has the appropriate permissions.
  • The endpoint validate all data passed in the body of the request
  • Requests to the endpoint must include a valid authentication token in the Authorization header. Authorization: Bearer
  • Given a request with a valid job post ID, when the user is authenticated and authorized, the system should update the user with a status code of 200
  • Given a request with an invalid or non-existent user ID, when the user is authenticated and authorised, the system should return a 404 Not Found status.
  • Successful response with valid id
  • invalid job post id
  • Missing job post id
  • invalid request body
  • Appropriate status code

image

Screenshots (if appropriate - Postman, etc):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Define API endpoint to update job post details.
  • Implement logic to update job post details in the database.
  • Handle success and error responses.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@RaphAlemoh RaphAlemoh changed the title Feat/update user job feat/update user job Jul 24, 2024
@timiajayi
Copy link
Contributor

timiajayi commented Jul 24, 2024

Write correct title, Fix merge conflict and. Check your boxes

@timiajayi timiajayi changed the title feat/update user job [feat]update user job Jul 24, 2024
@buka4rill buka4rill closed this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants