Retrieve a list of all products in the catalog
cURL
curl --request GET \ --url https://api.example.com/products
{ "products": [ { "id": 123, "name": "<string>", "description": "<string>", "price": 123, "imageUrl": "<string>", "stock": 123, "categoryId": 123, "createdAt": {}, "updatedAt": {} } ] }
GET /products
[ { "id": 1, "name": "Laptop", "description": "High-performance laptop for professionals", "price": "1299.99", "imageUrl": "https://example.com/uploads/laptop.jpg", "stock": 15, "categoryId": 2, "createdAt": "2026-01-15T10:30:00.000Z", "updatedAt": "2026-02-20T14:25:00.000Z" }, { "id": 2, "name": "Wireless Mouse", "description": "Ergonomic wireless mouse with precision tracking", "price": "29.99", "imageUrl": "https://example.com/uploads/mouse.jpg", "stock": 50, "categoryId": 3, "createdAt": "2026-01-20T09:15:00.000Z", "updatedAt": "2026-01-20T09:15:00.000Z" } ]