{
    "info": {
        "name": "Veridyn DPP API v1",
        "description": "EU digitális termékútlevél API. Állítsd be a base_url és api_key gyűjtemény-változókat (Variables fül). API-kulcs: Beállítások → Fejlesztői API. A data mezőket kategóriánként a GET /schema/{category} adja meg.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://veridyn.eu/api/v1"
        },
        {
            "key": "api_key",
            "value": "vk_..."
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{api_key}}",
                "type": "string"
            }
        ]
    },
    "item": [
        {
            "name": "Health",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/health"
            }
        },
        {
            "name": "Categories",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/categories"
            }
        },
        {
            "name": "Schema (battery)",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/schema/battery"
            }
        },
        {
            "name": "Products — list",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/products?status=all&limit=25"
            }
        },
        {
            "name": "Products — create",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/products",
                "description": "A data mezőket a GET /schema/{category} adja meg.",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"category\": \"battery\",\n    \"data\": {\n        \"identifier\": {\n            \"sku\": \"DEMO-001\"\n        }\n    }\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Product — get",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/products/:id"
            }
        },
        {
            "name": "Product — update",
            "request": {
                "method": "PATCH",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/products/:id",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"data\": {\n        \"identifier\": {\n            \"sku\": \"DEMO-001-REV2\"\n        }\n    }\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Product — QR (SVG)",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/products/:id/qr"
            }
        },
        {
            "name": "Product — children (list)",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/products/:id/children"
            }
        },
        {
            "name": "Product — children (create)",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/products/:id/children",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"items\": [\n        {\n            \"serial\": \"SN-0001\"\n        },\n        {\n            \"serial\": \"SN-0002\"\n        }\n    ]\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Product — scans",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/products/:id/scans?days=30"
            }
        },
        {
            "name": "Scans — tenant",
            "request": {
                "method": "GET",
                "header": [],
                "url": "{{base_url}}/scans?days=30"
            }
        }
    ]
}