E-commerce Product

Commerce

Product catalog with prices, categories, and images

Locale
EN
Fields
10
Uses
0
Sign in to use template

Schema fields

id sequence
name product_name
slug slug
price currency
rating decimal
category enum
in_stock boolean
image_url image_url
created_at datetime
description paragraph

Schema definition

json
{
  "id": {
    "type": "sequence",
    "options": {
      "start": 1
    }
  },
  "name": {
    "type": "product_name"
  },
  "slug": {
    "type": "slug",
    "options": {
      "words": 3
    }
  },
  "price": {
    "type": "currency",
    "options": {
      "max": 999.99,
      "min": 9.99
    }
  },
  "rating": {
    "type": "decimal",
    "options": {
      "max": 5,
      "min": 1,
      "precision": 1
    }
  },
  "category": {
    "type": "enum",
    "options": {
      "values": [
        "Electronics",
        "Clothing",
        "Home",
        "Books",
        "Sports",
        "Beauty"
      ]
    }
  },
  "in_stock": {
    "type": "boolean",
    "options": {
      "true_rate": 0.7
    }
  },
  "image_url": {
    "type": "image_url",
    "options": {
      "width": 400,
      "height": 400
    }
  },
  "created_at": {
    "type": "datetime"
  },
  "description": {
    "type": "paragraph",
    "options": {
      "sentences": 2
    }
  }
}

Example API call

terminal
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.apiryner.com/v1/layouts/product?count=5&locale=en"