ifixkart-admin/docs/catalog/comparison.md
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

37 lines
840 B
Markdown

# Product Comparison Architecture
## Specification
Enables side-by-side spec comparisons for up to **4 products / variants** simultaneously. Managed via `ProductCompareRouter.py`.
---
## API & Data Structure
### Endpoint: `POST /api/v1/products/compare`
Request Body:
```json
{
"product_ids": ["prd_01J8X9A", "prd_01J8X9B", "prd_01J8X9C"]
}
```
Response matrix matches common attribute types dynamically:
```json
{
"attributes": ["Screen Size", "RAM", "Battery Capacity", "Price"],
"products": [
{
"product_id": "prd_01J8X9A",
"name": "Display Assembly OLED",
"values": { "Screen Size": "6.1 in", "RAM": "N/A", "Price": 149.99 }
},
{
"product_id": "prd_01J8X9B",
"name": "Display Assembly LCD",
"values": { "Screen Size": "6.1 in", "RAM": "N/A", "Price": 89.99 }
}
]
}
```