ورود | ثبت نام
  • FA
  • EN

API Docs

GET /api/v1/training/services

Retrieve a list of training services.

No authentication required. A token is honoured when present (optional auth), which is what lets trainers see their own unlisted services and admins see every service.


Permissions

PermissionDescription
training_services.view_allList every service, including those whose trainer's license is not approved (admin only).

Visibility: a service is publicly listed only while its trainer's trainer_license_approved is true. Services belonging to a trainer whose license is pending (null) or rejected (false) are hidden from everyone except that trainer and admins, and they cannot be purchased — see Create Trainee.


Query Parameters

NameTypeRequiredDescription
service_idstringNoFilter by training service ID(s); comma-separated for multiple
user_idstringNoFilter by user IDs (comma-separated for multiple)
categorystringNoFilter by categories (comma-separated): diet_plan, workout_plan, other
major_idsstringNoFilter by major IDs (comma-separated for multiple)
searchstringNoSearch by title, description, and trainer name
pageintNoPage number for pagination
sortstringNoasc for oldest, desc for latest (default: desc)

Note: Results are first sorted by marketing boosts; sort applies secondarily.


Response

200 OK

Returns a paginated list of training service resources.

{
  "data": [ { /* training service resource */ }, ... ],
  "links": { /* pagination data */ },
  "meta": { /* pagination data */ }
}

See Training Service Resource and Pagination Data (per page: 50).

Dambel

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

LinkedinInstagramXYoutubeTelegramGitHub