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 Job Listing Endpoint #146

Closed
wants to merge 6 commits into from

Conversation

kunmifab
Copy link
Contributor

@kunmifab kunmifab commented Jul 24, 2024

Description

​Added a feature to update job listing

Related Issue (Link to Github issue)

hngprojects/hng_boilerplate_nestjs#158

ENDPOINT

PATCH /api/v1/jobs/{id}

Motivation and Context

Enable users to create update job listing created in an Organisation.

How Has This Been Tested?

  • The endpoint is accessible at PATCH /api/v1/jobs/{id}.

  • The endpoint accepts HTTP PATCH requests.

  • The endpoint checks that the user has the appropriate permissions.

  • The endpoint validates all data passed in the body of the request.

  • Checks if the requests to the endpoint include a valid authentication token in the Authorization header (Authorization:
    Bearer ).

  • Given a request with valid job details, when the user is authenticated and authorized, the system updates the job listing with a status code of 200.

  • Given a request with invalid request data, the system returns a 400 Bad Request status.
    Feature tests:
    All test cases passed.
    Successful response with valid data.
    Invalid request data.
    Invalid Job id.
    Invalid Data.

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:

  • 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.

@timiajayi
Copy link
Contributor

Fill this form well also it’s [Feat]

@kunmifab kunmifab changed the title Feat/update job listing {Feat} An API endpoint to update a job listing Jul 24, 2024
@kunmifab kunmifab changed the title {Feat} An API endpoint to update a job listing {FEAT} Update Job Listing Endpoint Jul 24, 2024
@kunmifab
Copy link
Contributor Author

Fill this form well also it’s [Feat]
I made the changes

@buka4rill buka4rill closed this Jul 24, 2024
@timiajayi
Copy link
Contributor

Use [ not {
add test image
Use bullet point instead of numbers

@kunmifab kunmifab changed the title {FEAT} Update Job Listing Endpoint [FEAT] Update Job Listing Endpoint 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