dambel

دمبل

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

API Docs / training / diet-plans / index



/api/v1/training/diet-plans

Retrieve a list of your own and your trainees' diet plans.


Permissions

PermissionDescription
diet_plans.viewView diet plans

Query Parameters

NameTypeRequiredDescription
trainee_idstringNoFilter by trainee IDs (comma-separated for multiple)
searchstringNoSearch by title and description
pageintNoPage number for pagination
sortstringNoasc for oldest, desc for latest (default: desc)

Response

200 OK

{
  "data": [<diet plan resource>, ...],
  "links": {<pagination data>},
  "meta": {<pagination data>}
}

Note: The current active plan is always at the top of the list regardless of the sorting options


Error Responses

StatusError TypeReference
401UnauthorizedAuthentication error
403ForbiddenPermission error

footer wave
logo

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

LinkedinInstagramXYoutube