Please implement the following screens:
Main Screen.
Categories / subcategories screen.
Main Screen, categories & subcategories:
Clicking on the CAT Digital Labs image will load the catalog.
Data on this page will be loaded from the following endpoint http://yardclub.github.io/mobile-interview/api/catalog.json
After selecting a catalog, you can return subcategories by using the endpoint & id of the category selected
http://yardclub.github.io/mobile-interview/api/catalog/{{ID}}.json
e.g.
http://yardclub.github.io/mobile-interview/api/catalog/4.json
Finally:
after choosing both a category and subcategory, you can render the "results" endpoint however you'd like.
The results endpoint can be found here: http://yardclub.github.io/mobile-interview/api/results.json
and consists of an array of results with various attributes belonging to the equipment and an array of featured photos.
{
"display_name": "D8 Dozer",
"results": [
{
"id": 2985,
"name": "CAT D8N",
"description": "Oper. Wt. 83K lbs",
"daily_rate": "$1,525",
"weekly_rate": "$4,575",
"monthly_rate": "$13,700",
"operated_rates": ""
},
{
"id": 3126,
"name": "John Deere 1050",
"description": "Oper. Wt. 93K",
"daily_rate": "$1,675",
"weekly_rate": "$5,025",
"monthly_rate": "$15,100",
"operated_rates": "100/hr"
}
],
"featured_photos": [
{
"url": "https://github.com/yardclub/mobile-interview/blob/8b27d8eb2776579979850bdabbee85718a057c5c/onlineimages/compacttrackloaders.png"
},
{
"url": "https://github.com/yardclub/mobile-interview/blob/8b27d8eb2776579979850bdabbee85718a057c5c/onlineimages/compactors.png"
},
{
"url": "https://github.com/yardclub/mobile-interview/blob/8b27d8eb2776579979850bdabbee85718a057c5c/onlineimages/coldplaners.png"
},
]
}