Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
428 changes: 428 additions & 0 deletions API.md

Large diffs are not rendered by default.

33 changes: 7 additions & 26 deletions backend/data/cart.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,18 @@
"items": []
},
"79be980f-d83d-4c63-b3b6-77c13193e1a5": {
"items": [
{
"product_id": "B08HDJ86NZ",
"product_name": "boAt Deuce USB 300 2 in 1 Type-C & Micro USB Stress Resistant, Tangle-Free, Sturdy Cable with 3A Fast Charging & 480mbps Data Transmission, 10000+ Bends Lifespan and Extended 1.5m Length(Martian Red)",
"img_link": "https://m.media-amazon.com/images/I/41V5FtEWPkL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Deuce-300-Resistant-Tangle-Free-Transmission/dp/B08HDJ86NZ/ref=sr_1_4?qid=1672909124&s=electronics&sr=1-4",
"discounted_price": 329.0,
"quantity": 1
},
{
"product_id": "B08Y1TFSP6",
"product_name": "pTron Solero TB301 3A Type-C Data and Fast Charging Cable, Made in India, 480Mbps Data Sync, Strong and Durable 1.5-Meter Nylon Braided USB Cable for Type-C Devices for Charging Adapter (Black)",
"img_link": "https://m.media-amazon.com/images/I/31wOPjcSxlL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Solero-TB301-Charging-480Mbps-1-5-Meter/dp/B08Y1TFSP6/ref=sr_1_6?qid=1672909124&s=electronics&sr=1-6",
"discounted_price": 149.0,
"quantity": 1
},
{
"product_id": "B098NS6PVG",
"product_name": "Ambrane Unbreakable 60W / 3A Fast Charging 1.5m Braided Type C Cable for Smartphones, Tablets, Laptops & other Type C devices, PD Technology, 480Mbps Data Sync, Quick Charge 3.0 (RCT15A, Black)",
"img_link": "https://m.media-amazon.com/images/I/41lJ8x1yeIL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Ambrane-Unbreakable-Charging-Braided-Cable/dp/B098NS6PVG/ref=sr_1_2?qid=1672909124&s=electronics&sr=1-2",
"discounted_price": 199.0,
"quantity": 1
}
]
"items": []
},
"ae993132-12a6-40c6-a91a-3fe889d95edd": {
"items": []
},
"1cb86309-e8b2-45e3-8da7-1c2f54c65ae5": {
"items": []
},
"0bffca91-1c49-47a5-87b7-b0248da35d16": {
"items": []
},
"a7977848-4f94-4cb5-beea-6aa0604d3dda": {
"items": []
}
}
37 changes: 36 additions & 1 deletion backend/data/penalties.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,48 @@
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "this is a test\n",
"timestamp": "2025-12-04T09:51:32.112239+00:00",
"status": "active"
"status": "resolved"
},
{
"penalty_id": "fcc4f1f7-b804-47b7-aabd-df60422581e1",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "this will be resolved\n",
"timestamp": "2025-12-04T09:51:39.294157+00:00",
"status": "resolved"
},
{
"penalty_id": "acea54ce-b852-4278-a61c-0c5ce22e1f4a",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "another one, bad",
"timestamp": "2025-12-04T21:36:26.127889+00:00",
"status": "active"
},
{
"penalty_id": "e540b446-4cc6-4fce-bb97-0391ad57a113",
"user_id": "0bffca91-1c49-47a5-87b7-b0248da35d16",
"reason": "youve been spamming orders",
"timestamp": "2025-12-04T23:16:53.220112+00:00",
"status": "active"
},
{
"penalty_id": "ad972921-23d0-4d17-918e-8d540c16a2aa",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "bad bad",
"timestamp": "2025-12-04T23:27:44.655761+00:00",
"status": "active"
},
{
"penalty_id": "ee63d5ff-75ab-4e8f-87a4-07b11e9f0c72",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "terrible",
"timestamp": "2025-12-04T23:27:53.185321+00:00",
"status": "resolved"
},
{
"penalty_id": "78900127-1853-499f-a3bb-33b92c2539aa",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "okay.",
"timestamp": "2025-12-04T23:27:59.267582+00:00",
"status": "resolved"
}
]
60 changes: 30 additions & 30 deletions backend/data/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"discount_percentage": 43.0,
"rating": 4.0,
"rating_count": 43994,
"about_product": "Compatible with all Type C enabled devices, be it an android smartphone (Mi, Samsung, Oppo, Vivo, Realme, OnePlus, etc), tablet, laptop (Macbook, Chromebook, etc)|Supports Quick Charging (2.0/3.0)|Unbreakable – Made of special braided outer with rugged interior bindings, it is ultra-durable cable that won’t be affected by daily rough usage|Ideal Length – It has ideal length of 1.5 meters which is neither too short like your typical 1meter cable or too long like a 2meters cable|Supports maximum 3A fast charging and 480 Mbps data transfer speed|6 months manufacturer warranty from the date of purchase",
"about_product": "edited: Compatible with all Type C enabled devices, be it an android smartphone (Mi, Samsung, Oppo, Vivo, Realme, OnePlus, etc), tablet, laptop (Macbook, Chromebook, etc)|Supports Quick Charging (2.0/3.0)|Unbreakable – Made of special braided outer with rugged interior bindings, it is ultra-durable cable that won’t be affected by daily rough usage|Ideal Length – It has ideal length of 1.5 meters which is neither too short like your typical 1meter cable or too long like a 2meters cable|Supports maximum 3A fast charging and 480 Mbps data transfer speed|6 months manufacturer warranty from the date of purchase",
"img_link": "https://m.media-amazon.com/images/I/41lJ8x1yeIL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Ambrane-Unbreakable-Charging-Braided-Cable/dp/B098NS6PVG/ref=sr_1_2?qid=1672909124&s=electronics&sr=1-2"
},
Expand Down Expand Up @@ -183,14 +183,14 @@
},
{
"product_id": "B0B6F7LX4C",
"product_name": "MI 80 cm (32 inches) 5A Series HD Ready Smart Android LED TV L32M7-5AIN (Black)",
"product_name": "Huge tv!",
"category": "Electronics|HomeTheater,TV&Video|Televisions|SmartTelevisions",
"discounted_price": 13999.0,
"actual_price": 24999.0,
"discount_percentage": 44.0,
"discount_percentage": 49.0,
"rating": 4.2,
"rating_count": 32840,
"about_product": "Note : The brands, Mi and Xiaomi, are part of the same multinational conglomerate|Resolution : HD Ready (1366 x 768) Resolution | Refresh Rate : 60 Hertz | 178 Degree wide viewing angle|Connectivity: Dual Band Wi-Fi | 2 HDMI ports to connect latest gaming consoles, set top box, Blu-ray Players | 2 USB ports to connect hard drives and other USB devices | ALLM | ARC | Bluetooth 5.0 | Ethernet|Sound: 20 Watts Output | Dolby Audio, DTS Virtual: X, DTS-HD|Smart TV Features : Android TV 11 | PatchWall | IMDb Integration | Universal Search | 300+ Free Live Channels | Kids Mode with Parental lock | Smart Recommendations | Language Universe – 15+ Languages | User Centre | Okay Google | Chromecast suporting Apps : Netflix, Prime Video, Disney+ Hotstar | 5000+ apps from Play Store |Quad core Cortex A35 | Chromecast built-in | Ok Google | Auto Low Latency Mode | 1GB RAM + 8GB Storage|Display: HD Ready | Vivid Picture Engine|Warranty Information: 1 year comprehensive warranty on product and 1 year additional on Panel provided by the brand from the date of purchase",
"about_product": "this is a huge TV",
"img_link": "https://m.media-amazon.com/images/I/518sTcK7UGL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/MI-inches-Ready-Android-L32M7-5AIN/dp/B0B6F7LX4C/ref=sr_1_18?qid=1672909124&s=electronics&sr=1-18"
},
Expand Down Expand Up @@ -1494,19 +1494,6 @@
"img_link": "https://m.media-amazon.com/images/I/21jGngYuQoL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Electvision-Remote-Control-Compatible-Pairing/dp/B09DDCQFMT/ref=sr_1_130?qid=1672909130&s=electronics&sr=1-130"
},
{
"product_id": "B08RP2L2NL",
"product_name": "King Shine Multi Retractable 3.0A Fast Charger Cord, Multiple Charging Cable 4Ft/1.2m 3-in-1 USB Charge Cord Compatible with Phone/Type C/Micro USB for All Android and iOS Smartphones (Random Colour)",
"category": "Computers&Accessories|Accessories&Peripherals|Cables&Accessories|Cables|USBCables",
"discounted_price": 347.0,
"actual_price": 999.0,
"discount_percentage": 65.0,
"rating": 3.5,
"rating_count": 1121,
"about_product": "One for All: Charge any of your devices with the 3-in-1 retractable charging cable, built-in Micro USB, USB-C, and iOS connectors.|No need to carry any other cables when you are in a car, office ,travelling or house guests,it was created exclusively for the purposes of convenient charging several devices simultaneously or individually.|Compatible iPhone 11 Pro i Phone 11 iPhone 11 Pro Max iPhone XR iPhone XS iPhone XS Max iPhone X iPhone 8 iPhone 8 Plus iPhone 7 iPhone 7 Plus iPhone SE iPhone 6s iPhone 6s Plus iPhone 6 iPhone 6 Plus iPhone 5s i-Pad Air (3rd generation) i-Pad mini (5th generation) i-Pad (6th generation) i-Pad Pro 12.9-inch (2nd generation) i-Pad Pro 10.5-inch (5th generation) i-Pad Pro 9.7-inch Pro 12.9-inch (1st generation) i-Pad Air 2 i-Pad mini 4 i-Pad mini 3 i-Pad Air mini 2 iPod touch (6th generation)|Flexible Cable Length: Easy to coil and organize Rope Streamer, without tangles. Keeping the cable organized when you don't want to use that length or shape storage you like sometimes.",
"img_link": "https://m.media-amazon.com/images/I/41ks-G58Q6L._SX342_SY445_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Retractable-Multiple-Charging-Compatible-Smartphones/dp/B08RP2L2NL/ref=sr_1_131?qid=1672909130&s=electronics&sr=1-131"
},
{
"product_id": "B0B4G2MWSB",
"product_name": "Lapster 5 pin mini usb cable, usb b cable,camera cable usb2.0 for External HDDS/Card Readers/Camera etc.",
Expand Down Expand Up @@ -1741,19 +1728,6 @@
"img_link": "https://m.media-amazon.com/images/I/51t70kvc0SL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/LG-inches-Ultra-43UQ7500PSF-Ceramic/dp/B0B3XY5YT4/ref=sr_1_154?qid=1672909131&s=electronics&sr=1-154"
},
{
"product_id": "B0B4HKH19N",
"product_name": "pTron Solero 331 3.4Amps Multifunction Fast Charging Cable, 3-in-1 USB Cable Micro USB/Type-C/iOS, Made in India, Durable & Strong & Tangle-free 118cm in Length (Black)",
"category": "Computers&Accessories|Accessories&Peripherals|Cables&Accessories|Cables|USBCables",
"discounted_price": 249.0,
"actual_price": 931.0,
"discount_percentage": 73.0,
"rating": 3.9,
"rating_count": 1075,
"about_product": "Fast Charging - All combined 3-in-1 USB cable supports fast charging with a speed of up to 3.4Amps to all your gadgets including smartphones, tablets, Bluetooth speakers, and much more.|Wide Compatibility - Solero 331 universal fast charging cable can Simultaneously Charge Android, iOs & Type-C devices. Proudly Made in India.|Ultra Durable USB Cable - The cable is crafted with a thick PVC jacket giving you an extra tough cable with 10000+ bends lifespan cycle. It can easily handle daily wear and tear.|Convenient Length - This multi-pin USB cable comes with an ideal length of 118cm which eliminates the struggle of finding nearby switchboards.|6 months manufacturer warranty from the date of purchase on manufacturing defects only. Please note this cable is only for charging and does not support data transfer.",
"img_link": "https://m.media-amazon.com/images/I/31Wfr-ISQxL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/pTron-3-4Amps-Multifunction-Charging-Tangle-free/dp/B0B4HKH19N/ref=sr_1_155?qid=1672909131&s=electronics&sr=1-155"
},
{
"product_id": "B08TGG316Z",
"product_name": "10k 8k 4k HDMI Cable, Certified 48Gbps 1ms Ultra High Speed HDMI 2.1 Cable 4k 120Hz 144Hz 2k 165Hz 8k 60Hz Dynamic HDR ARC eARC DTS:X Compatible for Mac Gaming PC Soundbar TV Monitor Laptop PS5 4 Xbox",
Expand Down Expand Up @@ -19225,5 +19199,31 @@
"about_product": "Should be saved",
"img_link": "https://example.com/img.jpg",
"product_link": "https://example.com/prod"
},
{
"product_id": "TZDKJA0VR2",
"product_name": "Spagetti",
"category": "Spagetti",
"discounted_price": 500.0,
"actual_price": 1000.0,
"discount_percentage": 50.0,
"rating": 5.0,
"rating_count": 0,
"about_product": "this is some good spagetti",
"img_link": "https://spagetti",
"product_link": "https://spagettilink"
},
{
"product_id": "1RHJWX6CHL",
"product_name": "Cheese Burger",
"category": "burger",
"discounted_price": 500.0,
"actual_price": 1000.0,
"discount_percentage": 50.0,
"rating": 5.0,
"rating_count": 10000,
"about_product": "super good burger, pls buy",
"img_link": "https://burger",
"product_link": "https://burgerlink"
}
]
27 changes: 27 additions & 0 deletions backend/data/refunds.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,32 @@
"status": "pending",
"created_at": "2025-12-04T20:46:11.739573",
"updated_at": null
},
{
"refund_id": "13a0b241-346a-4190-8afa-5e0c3b91b8a7",
"transaction_id": "0f782aad-2231-4e57-8e8a-372c549afa39",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"message": "too many remotes, not enough Tv's",
"status": "approved",
"created_at": "2025-12-04T21:33:17.094571",
"updated_at": "2025-12-04T21:34:32.033344"
},
{
"refund_id": "404885a2-860f-4205-82eb-a302f64e244d",
"transaction_id": "a0ed719b-2c7e-4b33-923f-34678914c794",
"user_id": "0bffca91-1c49-47a5-87b7-b0248da35d16",
"message": "I dont like these items, too expensive",
"status": "approved",
"created_at": "2025-12-04T23:10:46.971177",
"updated_at": "2025-12-04T23:11:51.938404"
},
{
"refund_id": "f6b3f3e4-f7f6-4aeb-b54c-055f5297d166",
"transaction_id": "57517be3-1662-4780-9e2f-bf6c22ceb909",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"message": "Not a fan of the charger",
"status": "approved",
"created_at": "2025-12-04T23:23:57.599942",
"updated_at": "2025-12-04T23:24:42.470210"
}
]
Loading
Loading