As a contractor, I should be able to search for laborers using the name, so that I can view their details.
Acceptance Criteria
GIVEN an contractor is searching for laborers in the desktop app
WHEN the app hits the /laborers endpoint with a valid GET request, containing:
the query parameters:
name=starts_with, for getting a filtered subset of laborers based on their names.
THEN the app should receive a status 200AND in the response, the following information should be returned:
Summary
As a
contractor
, I should be able to search for laborers using the name, so that I can view their details.Acceptance Criteria
GIVEN an
contractor
is searching for laborers in the desktop app WHEN the app hits the/laborers
endpoint with a valid GET request, containing: the query parameters:name=starts_with
, for getting a filtered subset of laborers based on their names.THEN the app should receive a status
200
AND in the response, the following information should be returned:Sample Request/Sample Response
Resources
Dev Notes
{Some complementary notes if necessary}
Testing Notes
{notes for QA, with examples if applicable}