Profile Grocery Item

Once meal plan is prepared for a profile, the grocery items can be queried providing the concerned profile ID as the query param in this endpoint, and this is how the sample response looks like:

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "quantity": 100,
    "unit": "g",
    "grocery_item": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa7",
      "name": "flour"
    }
  },
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa8",
    "quantity": 100,
    "unit": "ml",
    "grocery_item": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa9",
      "name": "milk"
    }
  }
]

Please note that the unit field has two possible values - "g" for solid grocery items, and "ml" for liquid grocery items.

The quantity field in the grocery items represents the aggregated quantity for each meal that is part of the weekly meal plan. For example, if the weekly meal plan contains two meals - each of which requires 50 grams of flour, the quantity returned for flour would be 100 grams.