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: Implemented an endpoint to search for jobs by company name. #435

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

medusa009
Copy link

@medusa009 medusa009 commented Mar 1, 2025

Description

**Closes #426 **

Changes proposed

Added GET /api/v1/jobs/search/company-name to the Job controller.
Created a query and query handler in the Hng.Application project to handle the interface and logic of the endpoint according to the CQRS pattern.
I also added units tests for the query handler in the Hng.Application.Test project.

What were you told to do?

Implement an endpoint to search for jobs by company name.

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title and description of the PR is clear and explains the approach.
  • I am making a pull request against the dev branch (left side).
  • My commit messages styles matches our requested structure.
  • My code additions will fail neither code linting checks nor unit test.
  • I am only making changes to files I was requested to.

Screenshots

A job search for a company with a job post in the database returns a successful 200 status code.
Right company name

A job search for a company without a job post in the database returns a 404 status code.
wrong company name

Test Passed
Test

@Heba-WebDev
Copy link
Contributor

A PR title should start with a key word that explains its type (Feat, Fix, Test etc). Also, no need to add the issue number to the endpoint of the title, it's referenced in your PR and already linked to it.

@medusa009 medusa009 changed the title Implemented an endpoint to search for jobs by company name. #426 FEAT: Implemented an endpoint to search for jobs by company name. Mar 2, 2025
@medusa009
Copy link
Author

A PR title should start with a key word that explains its type (Feat, Fix, Test etc). Also, no need to add the issue number to the endpoint of the title, it's referenced in your PR and already linked to it.

Done

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.

[Feat] Implement an endpoint to search for jobs by company name.
2 participants