FakerAPI · JSON Structure

Fakerapi Product Structure

A fake product record produced by FakerAPI /api/v1/products.

Type: object Properties: 11 Required: 2
Test DataFake DataMockingDeveloper ToolsOpen SourcePublic APIs

Product is a JSON Structure definition published by FakerAPI, describing 11 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id name description ean upc image images net_price taxes price categories

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://fakerapi.it/structures/product.json",
  "name": "Product",
  "description": "A fake product record produced by FakerAPI /api/v1/products.",
  "type": "object",
  "properties": {
    "id": { "type": "int32" },
    "name": { "type": "string" },
    "description": { "type": "string" },
    "ean": { "type": "string" },
    "upc": { "type": "string" },
    "image": { "type": "uri" },
    "images": { "type": "array", "items": { "$ref": "fakerapi-image-structure.json" } },
    "net_price": { "type": "string" },
    "taxes": { "type": "int32" },
    "price": { "type": "string" },
    "categories": { "type": "array", "items": { "type": "string" } }
  },
  "required": ["id", "name"]
}