dambel

دمبل

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

API Docs / ratings / rating resource



Rating Resource

Represents a rating entity, including the user, ratable association, and score.


Schema

FieldTypeDescription
idintUnique identifier for the rating
user_idintID of the user who created the rating
ratable_typestringType of the ratable (e.g., App\\Models\\Gym)
ratable_idintID of the ratable item
scoreintScore given (1-5)

Example

{
  "id": 123,
  "user_id": 42,
  "ratable_type": "App\\Models\\Gym",
  "ratable_id": 10,
  "score": 5
}
footer wave
logo

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

LinkedinInstagramXYoutube