dambel

دمبل

shevron
ورود | ثبت نام

API Docs / training / diet-plans / diet plan resource



Diet Plan Resource

Represents a diet plan.


Schema

FieldTypeDescription
idintegerDiet plan ID
user_idintegerUser ID who owns the plan
trainee_idintegerTrainee ID (if applicable)
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,
  "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

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube