{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/stage.1kosmosfactory.com"
        }
    ],
    "info": {
        "name": "1Kosmos Factory TV API Documentation",
        "_postman_id": "668397e3-e749-434e-b136-ab8a8e680d57",
        "description": "API for TV applications (Apple TV, Android TV) to display artworks.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "TV Artworks",
            "description": "\nAPIs for TV applications to display artworks with QR codes.",
            "item": [
                {
                    "name": "List Artworks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/tv\/artworks",
                            "query": [
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number for pagination. Default: 1.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "20",
                                    "description": "Number of items per page. Min: 1, Max: 50. Default: 20.",
                                    "disabled": false
                                },
                                {
                                    "key": "category_id",
                                    "value": "1",
                                    "description": "Filter by category ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "featured",
                                    "value": "1",
                                    "description": "Show only featured artworks.",
                                    "disabled": false
                                },
                                {
                                    "key": "sort",
                                    "value": "new",
                                    "description": "Sort order: new, popular, price_asc, price_desc. Default: new.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/tv\/artworks?page=1&per_page=20&category_id=1&featured=1&sort=new"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a paginated list of artworks for TV display. Each artwork includes images and a QR code\nthat links to the artwork detail page in the mobile\/web application."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"title\": \"Sunset Canvas\",\n      \"description\": \"A beautiful sunset painting\",\n      \"artist_name\": \"John Doe\",\n      \"images\": [\n        {\n          \"image_url\": \"https:\/\/example.com\/artworks\/1\/image.jpg\"\n        }\n      ],\n      \"qr_code\": {\n        \"url\": \"https:\/\/stage.1kosmosfactory.com\/web\/artist\/artwork-detail?id=1\",\n        \"base64\": \"data:image\/svg+xml;base64,PHN2ZyB...\"\n      }\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"last_page\": 5,\n    \"per_page\": 20,\n    \"total\": 100\n  }\n}",
                            "name": "Success"
                        }
                    ]
                },
                {
                    "name": "Get Artwork",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/tv\/artworks\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/tv\/artworks\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The artwork ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get a single artwork by ID for TV display. Includes full details, images, artist info,\nand a QR code that links to the artwork detail page."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"Sunset Canvas\",\n    \"description\": \"A beautiful sunset painting with vibrant colors\",\n    \"artist_name\": \"John Doe\",\n    \"artist\": {\n      \"id\": 5,\n      \"name\": \"John Doe\",\n      \"bio\": \"Contemporary artist based in New York\",\n      \"profile_image\": \"https:\/\/example.com\/artist.jpg\"\n    },\n    \"images\": [\n      {\n        \"thumbnail\": \"https:\/\/example.com\/thumb.jpg\",\n        \"medium\": \"https:\/\/example.com\/medium.jpg\",\n        \"large\": \"https:\/\/example.com\/large.jpg\",\n        \"original\": \"https:\/\/example.com\/original.jpg\"\n      }\n    ],\n    \"category\": \"Paintings\",\n    \"price\": {\n      \"amount\": 1500.00,\n      \"currency\": \"USD\",\n      \"formatted\": \"$1,500.00\"\n    },\n    \"dimensions\": {\n      \"width\": 24,\n      \"height\": 36,\n      \"depth\": 2,\n      \"unit\": \"inches\"\n    },\n    \"qr_code\": {\n      \"url\": \"https:\/\/stage.1kosmosfactory.com\/web\/artist\/artwork-detail?id=1\",\n      \"base64\": \"data:image\/png;base64,iVBORw0KGgo...\"\n    }\n  }\n}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\Artwork] 999\"\n}",
                            "name": "Not Found"
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "apikey",
        "apikey": [
            {
                "key": "in",
                "value": "header",
                "type": "string"
            },
            {
                "key": "key",
                "value": "X-API-Key",
                "type": "string"
            }
        ]
    }
}