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

API Docs

Training Service Resource

Represents a training service offered by a user.


Schema

FieldTypeDescription
idintegerTraining service ID
user_idintegerUser ID who offers the service
userobjectUser Resource (The trainer)
titlestringTitle of the training service
descriptionstringDescription
priceintegerPrice of the training service
discountfloatDiscount percentage
categorystringCategory: diet_plan, workout_plan, other
majorsarrayList of Major Resources
discounted_priceintegerPrice after discount
mediaarrayList of Media Resource
rating_countintegerNumber of ratings
rating_averagefloatAverage rating
boostobject/nullMarketing Boost Resource

Example

{
  "id": 123,
  "user_id": 123,
  "title": "...",
  "description": "...",
  "price": 123,
  "discount": 0,
  "category": "workout_plan",
  "majors": [<major resource>, ...],
  "discounted_price": 123,
  "media": [<media resource>, ...],
  "rating_count": 123,
  "rating_average": 4.5,
  "boost": null
}

footer wave
logo

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

LinkedinInstagramXYoutubeTelegram