dambel

دمبل

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

API Docs / comments / comment resource



Comment Resource

Represents a comment entity, including its content, relationships, and timestamps.


Schema

FieldTypeDescription
idintUnique identifier for the comment
user_idintID of the user who created the comment
commentable_typestringThe type of the resource being commented on
commentable_idintThe ID of the resource being commented on
is_user_commentable_clientbooleanTrue if the commenter user is client of the commentable (e.g. subscriber of the gym)
contentstringThe content of the comment
parent_comment_idintID of the parent comment (for replies), or null
created_atstringCreation timestamp (ISO 8601 format)
updated_atstringLast update timestamp (ISO 8601 format)

Example

{
  "id": 123,
  "user_id": 456,
  "commentable_type": "App\\Models\\Gyms\\Gym",
  "commentable_id": 42,
  "is_user_commentable_client": false,
  "content": "Great gym!",
  "parent_comment_id": null,
  "created_at": "2025-01-01 00:00:00",
  "updated_at": "2025-01-01 00:03:00"
}
footer wave
logo

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

LinkedinInstagramXYoutube