{
  "info": {
    "name": "Revio Product API",
    "description": "Product details and outright prices (QAR) from the Revio catalogue.\n\nSetup: open the collection's Variables tab and paste your key into `apiKey`. Every request then sends it in the `x-api-key` header.\n\nDocs: https://api.revio.me/docs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "x-api-key", "type": "string" },
      { "key": "value", "value": "{{apiKey}}", "type": "string" },
      { "key": "in", "value": "header", "type": "string" }
    ]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://api.revio.me", "type": "string" },
    { "key": "apiKey", "value": "YOUR_API_KEY", "type": "string" },
    { "key": "productId", "value": "iphone-17", "type": "string" }
  ],
  "item": [
    {
      "name": "List products",
      "request": {
        "method": "GET",
        "url": {
          "raw": "{{baseUrl}}/v1/products",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "products"]
        },
        "description": "Every product for sale, as a summary with `priceFrom`."
      }
    },
    {
      "name": "List products (filtered)",
      "request": {
        "method": "GET",
        "url": {
          "raw": "{{baseUrl}}/v1/products?category=phone&brand=apple&inStock=true",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "products"],
          "query": [
            { "key": "category", "value": "phone", "description": "phone | laptop | tablet | watch" },
            { "key": "brand", "value": "apple", "description": "Brand name, not case-sensitive" },
            { "key": "inStock", "value": "true", "description": "Only products that can be bought now" }
          ]
        },
        "description": "Untick any query parameter you don't need."
      }
    },
    {
      "name": "Get product",
      "request": {
        "method": "GET",
        "url": {
          "raw": "{{baseUrl}}/v1/products/{{productId}}",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "products", "{{productId}}"]
        },
        "description": "One product with a price and stock status for every colour × storage variant. Set `productId` to an `id` from the list."
      }
    },
    {
      "name": "Health check",
      "request": {
        "auth": { "type": "noauth" },
        "method": "GET",
        "url": {
          "raw": "{{baseUrl}}/health",
          "host": ["{{baseUrl}}"],
          "path": ["health"]
        },
        "description": "Returns { \"ok\": true } when the service is up. No key needed."
      }
    }
  ]
}
