{
  "info": {
    "name": "Supplier Catalog Items API",
    "description": "Complete API collection for managing supplier catalog items (بيانات الصنف لدى المورد)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Supplier Catalog Items",
      "item": [
        {
          "name": "List All Items",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/supplier-catalog-items?per_page=15&page=1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "supplier-catalog-items"],
              "query": [
                {
                  "key": "per_page",
                  "value": "15"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "search",
                  "value": "steel",
                  "disabled": true
                },
                {
                  "key": "supplier_id",
                  "value": "5",
                  "disabled": true
                },
                {
                  "key": "catalog_item_id",
                  "value": "15",
                  "disabled": true
                },
                {
                  "key": "is_active",
                  "value": "true",
                  "disabled": true
                }
              ]
            }
          }
        },
        {
          "name": "Create Supplier Catalog Item",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"supplier_id\": 5,\n  \"catalog_item_id\": 15,\n  \"supplier_item_name\": \"Steel Plate Grade A\",\n  \"supplier_item_description\": \"Premium quality steel plate suitable for construction projects\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/supply/supplier-catalog-items",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "supplier-catalog-items"]
            }
          }
        },
        {
          "name": "Get Item Details",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/supplier-catalog-items/1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "supplier-catalog-items", "1"]
            }
          }
        },
        {
          "name": "Update Item",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"supplier_item_name\": \"Updated Steel Plate Name\",\n  \"supplier_item_description\": \"Updated description with more details\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/supply/supplier-catalog-items/1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "supplier-catalog-items", "1"]
            }
          }
        },
        {
          "name": "Delete Item",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/supplier-catalog-items/1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "supplier-catalog-items", "1"]
            }
          }
        }
      ]
    },
    {
      "name": "Supplier-Specific Operations",
      "item": [
        {
          "name": "Get Items for Supplier",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/suppliers/5/catalog-items?per_page=15&page=1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "suppliers", "5", "catalog-items"],
              "query": [
                {
                  "key": "per_page",
                  "value": "15"
                },
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          }
        },
        {
          "name": "Get Supplier Statistics",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/suppliers/5/catalog-items/statistics",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "suppliers", "5", "catalog-items", "statistics"]
            }
          }
        }
      ]
    },
    {
      "name": "Item-Specific Operations",
      "item": [
        {
          "name": "Get All Suppliers for Item",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/supply/catalog-items/15/suppliers?per_page=15&page=1",
              "host": ["{{BASE_URL}}"],
              "path": ["supply", "catalog-items", "15", "suppliers"],
              "query": [
                {
                  "key": "per_page",
                  "value": "15"
                },
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:8000",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    }
  ]
}
