As a contractor, I should be able to get all equipment, so that I can rent them in milestones.
Acceptance Criteria
Scenario 1: Search for all possible equipment
GIVEN an contractor is requesting all possible equipment in the desktop app
WHEN the app hits the /equipment endpoint with a valid GET request
THEN the app should receive a status 200AND in the response, the following information should be returned:
Scenario 2: Search for all equipment by equipment type
GIVEN an contractor is requesting all equipment for an equipment type in the desktop app
WHEN the app hits the /equipment endpoint with a valid GET request containing the query parameters:
eq_type="type_enum", where type_enum is one of [tools, machinery, heavy_vehicles, ....]
THEN the app should receive a status 200AND in the response, the following information should be returned:
headers
list of equipment having that equipment type
Sample Request/Sample Response
For query parameter eq_type=heavy_vehicles:
Summary
As a
contractor
, I should be able to get all equipment, so that I can rent them in milestones.Acceptance Criteria
Scenario 1: Search for all possible equipment
GIVEN an
contractor
is requesting all possible equipment in the desktop app WHEN the app hits the/equipment
endpoint with a valid GET request THEN the app should receive a status200
AND in the response, the following information should be returned:Sample Request/Sample Response
Scenario 2: Search for all equipment by equipment type
GIVEN an
contractor
is requesting all equipment for an equipment type in the desktop app WHEN the app hits the/equipment
endpoint with a valid GET request containing the query parameters:eq_type="type_enum"
, where type_enum is one of [tools, machinery, heavy_vehicles, ....]THEN the app should receive a status
200
AND in the response, the following information should be returned:Sample Request/Sample Response For query parameter eq_type=heavy_vehicles:
Resources
Dev Notes
This endpoint is going to be accessible and work the same way for the product owner as well.
Testing Notes
{notes for QA, with examples if applicable}