coordinista-service

Quickstart: Get an outfit by season

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.

Prerequisites

Get an outfit by season

Use the GET method to get an outfit based on specific parameters, such as season.

  1. Start your service in the terminal with the following command:

     cd <your-github-workspace>/coordinista-service/api
     json-server -w coordinista-db.json
    
  2. Open the Postman app on your desktop.
  3. Create a new request in the Postman app with the following values and parameters:
    • METHOD: GET
    • URL: /outfits?season=winter
    • Headers:
      • Content-Type: application/json
  4. Click Send to make the request.
  5. Ensure that the response body displays the same season that you identified in your request:
[
    {
        "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"
    }
]