Skip to content

Instantly share code, notes, and snippets.

@ched-dev
Last active March 24, 2022 22:56
Show Gist options
  • Save ched-dev/b986f264cce021b3538e950566b4afc6 to your computer and use it in GitHub Desktop.
Save ched-dev/b986f264cce021b3538e950566b4afc6 to your computer and use it in GitHub Desktop.
Mega API (Headless CMS) Data Types

πŸ₯  Fortunes (REST API / Read Only)

Available publicly at: https://mega-api.ched.dev/items/fortune

Schema

  • fortune
  • date_created

πŸ“½ Media Blog (REST API / Admin Interface)

S3 Cloud storage for files

Media Page Schema

  • title
  • slug
  • status (archived, draft, published)
  • author
  • publish_date
  • updated_date
  • cover (image)
  • description
  • content (wysiwyg / rich text)
  • markdown (markdown)
  • tags (relation)
  • metadata
    • title
    • image
    • description

Media Library Schema (data transformed in hook)

  • title
  • location (string: Lake Dillon in Dillon, CO)
  • image (File Library)
  • dateTaken (from exif.CreateDate)
  • season (from exif.CreateDate)
  • cameraMake (from ifd0.Make)
  • cameraModel (from ifd0.Model)
  • iso (from exif.ISO)
  • exposure (from exif.ExposureTime)
  • aperture (from exif.FNumber)
  • focalLength (from exif.FocalLength)
  • focalLengthIn35mm (from exif.FocalLengthIn35mmFormat)
  • lensMake (from exif.LensMake)
  • lensModel (from exif.LensModel)
  • gps (Point: from gps.latitude and gps.longitude)

πŸ“ƒ Lists (CRUD REST API w/ Auth)

Schema

  • lists
    • title
    • tasks (relation)
  • tasks
    • title
    • date_created
    • level (1-5)
    • completed (boolean)

πŸ““ Markdown Content API (REST API / Read Only)

Schema

  • page
    • parentPage
    • title
    • slug
    • markdown
    • status (archived, draft, published)
    • author
    • publish_date
    • updated_date
    • cover (image)
    • description
    • markdown (MDX support)
    • tags (relation)
    • metadata
      • title
      • image
      • description

❝❞ Slack Quotes (REST API / Read Only)

Convert and import data from JSON files

Schema

  • quote
  • category (one only)
  • tags

πŸ›Ή shredlove.com (REST API)

Migrate from Netlify CMS to Directus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment