Login | Sign Up
  • FA
  • EN

API Docs

Diet Plan Resource

Represents a diet plan.


Schema

FieldTypeDescription
idintegerDiet plan ID
user_idintegerUser ID who owns the plan
trainee_idintegerTrainee ID (if applicable)
traineeTraineeResourceTrainee resource (when loaded)
titlestringTitle of the diet plan
descriptionstringDescription
is_activebooleanIs it the current active plan that the athlete is following
target_daily_waterfloatSuggested daily water consumption in liters
created_atstringCreation timestamp (YYYY-MM-DD HH:MM:SS)
mealsarrayList of Diet Plan Meal Resource

Example

{
  "id": 123,
  "user_id": 123,
  "trainee_id": 123,
  "trainee": <trainee resource>,
  "title": "...",
  "description": "...",
  "is_active": true,
  "target_daily_water": 3.5,
  "created_at": "2020-01-01 00:00:00",
  "meals": [<diet plan meal resource>]
}

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub