{
  "openapi": "3.1.0",
  "info": {
    "title": "eComplex Agent Catalog",
    "version": "1.0.0",
    "description": "Catalog public read-only, generat static. Produsele sunt livrate în chunks JSON indicate de manifest."
  },
  "servers": [
    { "url": "https://ecomplex.ro" }
  ],
  "paths": {
    "/agent-api/manifest.json": {
      "get": {
        "operationId": "getCatalogManifest",
        "summary": "Obține manifestul catalogului",
        "responses": {
          "200": {
            "description": "Manifestul catalogului și lista de chunks",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Manifest" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Manifest": {
        "type": "object",
        "required": ["version", "updated_at", "product_count", "chunks"],
        "properties": {
          "version": { "type": "string" },
          "updated_at": { "type": "string", "format": "date-time" },
          "product_count": { "type": "integer" },
          "in_stock_count": { "type": "integer" },
          "chunk_size": { "type": "integer" },
          "chunks": { "type": "array", "items": { "type": "string", "format": "uri-reference" } }
        }
      }
    }
  }
}
