در حال بارگذاری…
List the meals prescribed by a diet plan, ordered by category_index then meal_index.
| Permission | Description |
|---|---|
diet_plan_meals.view | View meals of your diet plans |
diet_plans.view | View your own or your trainee's diet plans |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
diet-plan-id | int | Yes | ID of the diet plan | 12 |
GET /api/v1/training/diet-plans/12/meals
The whole set is returned — this endpoint is not paginated, because a diet plan's meals are bounded by the plan itself.
{
"data": [<diet plan meal resource>, ...]
}
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |