-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
Description
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.