dambel

دمبل

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

API Docs / media / media resource



Media Resource

Represents a media file attached to a resource, including its type, association, and download link.


Schema

FieldTypeDescriptionExample
idintUnique identifier for the media123
attachable_typestringType of the attached resource (e.g., App\\Models\\Gym)"App\Models\Gym"
attachable_idintID of the attached resource42
linkstringDownload link for the media file"https://.../file.jpg"

Example

{
  "id": 123,
  "attachable_type": "App\\Models\\Gym",
  "attachable_id": 42,
  "link": "https://example.com/media/file.jpg"
}
footer wave
logo

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

LinkedinInstagramXYoutube