Skip to content

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

@medusa009

Description

@medusa009

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions