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] Implement an endpoint to search for jobs by company name. #426

Open
medusa009 opened this issue Feb 28, 2025 · 0 comments · May be fixed by #435
Open

[Feat] Implement an endpoint to search for jobs by company name. #426

medusa009 opened this issue Feb 28, 2025 · 0 comments · May be fixed by #435
Assignees
Labels

Comments

@medusa009
Copy link

medusa009 commented Feb 28, 2025

Description

Develop an endpoint to search for job listing by the company name. The endpoint will accept a "company name" as a query parameter, validate and sanitize the input, and retrieve all the job listings by the company in the database.

Acceptance Criteria

  • Fetches all job listings by the company.
  • Returns the appropriate response and status code.

Requirements

Endpoint:

  • Method: GET
    
  • URL: /api/v1/jobs/search
    
  • Headers: Content-Type: application/json
    

Request Body:

{
     "CompanyName" : "string"
 }

Responses:

Successful Response

{

 "success": true,
    "status_code": 200,
    "message": "string",
    "data": [ ]
}

Error response

{
    "message": "string",
    "success": false,
    "status_code": int
}

Unit Test

  • Ensure only jobs posted by company are retrieved.
  • Verify the response structure and status codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants