This tutorial shows you the process to get an outfit from the Coordinista service based on the season.
This tutorial takes about 10 minutes to complete.
Use the GET
method to get an outfit based on specific parameters, such as season.
Start your service in the terminal with the following command:
cd <your-github-workspace>/coordinista-service/api
json-server -w coordinista-db.json
GET
/outfits?season=winter
Content-Type: application/json
[
{
"name": "mountain hiking outfit",
"season": "winter",
"event": "outdoors",
"description": "Hiking? In the winter? Extremely unlikely but not impossible.",
"clothingItems": "long-sleeved shirt, waterproof pants, hiking boots, beanie, backpack",
"id": "1"
}
]