# CarBoy Api's ``` base_url: http://35.185.186.246:1234/api/v1 or base_url: http://127.0.0.1:8000/api/v1 ``` ## Banner list * **<base_url>/banners** ``` request_method--GET Status Code: 200 Example Response Body: [ { "title": "Hell World", "home_image": "http://127.0.0.1:8000/media/graphic_images/e5f2cf42-c6db-4319-aef1-bfef2d818360.jpg", "url": "http://youtube.com" } ] ``` ## Popular Products * **<base_url>/popular-products** ``` request_method--GET Status Code: 200 Example Response Body: [ { "id": 5, "name": "Air Filters", "first_image": "http://127.0.0.1:8000/media/products/cfcbed22-65f2-4751-8f79-9fc48993e97d.jpeg", "specification": "<h2 data-spm-anchor-id=\"a2a0e.pdp.0.i1.df9aLOAwLOAwxm\">Product details of Honda AIR FILTER for CIVIC</h2><div data-spm=\"product_detail\"><ul><li>Factory replacement filter, designed to give your vehicle ideal performance</li><li>Designed to trap dirt and particles from entering your engine</li></ul></div><p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "price": "500.00" }, { "id": 6, "name": "Oil Filters", "first_image": "http://127.0.0.1:8000/media/products/5c000c39-c741-4734-b4fd-b5c13c31b0b5.jpeg", "specification": "<h2 data-spm-anchor-id=\"a2a0e.pdp.0.i2.38f34d3elk5TD5\">Product details of Oil Filter for Mitsubishi Lancer 90915-TZZE1 (Made in Thailand)</h2><div data-spm=\"product_detail\"><ul><li>High Quality Engine Oil Filter</li><li>Best Performance</li><li>A bypass valve, which alleviates restricted oil flow in the event of a clogged filter. An anti-drainback valve, which prevents oil from draining out of the engine and into the oil pan, helping to protect your engine from increased wear during cold starts.</li><li>A filter element which effectively filters contaminants and maintains the engine's lubrication capability during the maintenance interval.</li><li>By comparison, a lesser quality filter element might clog during Toyota's recommended maintenance interval leading to engine wear, seizure or other problems. Some non-genuine oil filters do not meet all of Toyota's stringent specifications as the Genuine Toyota Oil Filter does.</li></ul></div>", "price": "400.00" }, { "id": 8, "name": "Washer Pump", "first_image": "http://127.0.0.1:8000/static/maintheme/img/no_image_available.jpg", "specification": "<p>Hello Hira</p>", "price": "122.00" } ] ``` ## Product List * **<base_url>/products/** ``` request_method--GET Query Params = { 'page': int, 'brand': str (brand_slug), 'product_type': str (product_type_slug), 'category': str (category_slug), 'model': str (model_slug), 'model_year': str (model_year_slug), } Status Code: 200 Example Response Body: { "count": 8, "next": "http://127.0.0.1:8000/api/v1/products?page=2", "previous": null, "results": [ { "id": 1, "name": "Engine Oil", "first_image": "http://127.0.0.1:8000/media/products/dd2e8a5c-94dd-42ff-87e3-162d250e4abe.jpeg", "specification": "<h2 data-spm-anchor-id=\"a2a0e.pdp.0.i1.7414E4EPE4EPK4\">Product details of Liqui Moly Synth 15W-40 Street Race Semi Synthetic Engine Oil - 4 Litre</h2><div data-spm=\"product_detail\"><ul><li>Approvals: API SN/SN Plus and JASO MA2</li><li>Quantity: 1 Litre (Plastic canister)</li><li>Oil Type: Fully synthetic high-performance motor oil</li><li>Ensures maximum performance and outstanding engine protection under all operating conditions.</li><li>Offers perfect lubrication, outstanding engine cleanliness, excellent friction and minimum wear.</li><li>Ensures smooth engagement and disengagement as well as gear shifting</li><li>Significantly increases driving pleasure.</li><li>Tested for use with catalytic converters and on racing machines.</li><li>Application: Note the engine manufacturers&rsquo; operating instructions.</li><li>Special Note: Optimum effectiveness only when the product is used unmixed.</li><li>Product code: 20753</li></ul></div><p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "price": "2300.00" }, { "id": 2, "name": "Castrol Engine Oil", "first_image": "http://127.0.0.1:8000/media/products/12fd8ec5-c4c9-4db0-bdc2-0516ae077b26.jpeg", "specification": "<h2 data-spm-anchor-id=\"a2a0e.pdp.0.i1.7414E4EPE4EPK4\">Product details of Liqui Moly Synth 5W-30 Street Race Full Synthetic Engine Oil - 5 Litre</h2><div data-spm=\"product_detail\"><ul><li>Approvals: API SN/SN Plus and JASO MA2</li><li>Quantity: 1 Litre (Plastic canister)</li><li>Oil Type: Fully synthetic high-performance motor oil</li><li>Ensures maximum performance and outstanding engine protection under all operating conditions.</li><li>Offers perfect lubrication, outstanding engine cleanliness, excellent friction and minimum wear.</li><li>Ensures smooth engagement and disengagement as well as gear shifting</li><li>Significantly increases driving pleasure.</li><li>Tested for use with catalytic converters and on racing machines.</li><li>Application: Note the engine manufacturers&rsquo; operating instructions.</li><li>Special Note: Optimum effectiveness only when the product is used unmixed.</li><li>Product code: 20753</li></ul></div><p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "price": "2500.00" } ] } ``` ## Product Details * **<base_url>/products/<product_slug>** ``` request_method--GET requested sample url: <base_url>/products/engine-oil-8be367325/ Status Code: 200 Example Response Body: { "slug": "engine-oil-8be367325", "name": "Engine Oil", "first_image": "http://127.0.0.1:8000/media/products/dd2e8a5c-94dd-42ff-87e3-162d250e4abe.jpeg", "specification": "<h2 data-spm-anchor-id=\"a2a0e.pdp.0.i1.7414E4EPE4EPK4\">Product details of Liqui Moly Synth 15W-40 Street Race Semi Synthetic Engine Oil - 4 Litre</h2><div data-spm=\"product_detail\"><ul><li>Approvals: API SN/SN Plus and JASO MA2</li><li>Quantity: 1 Litre (Plastic canister)</li><li>Oil Type: Fully synthetic high-performance motor oil</li><li>Ensures maximum performance and outstanding engine protection under all operating conditions.</li><li>Offers perfect lubrication, outstanding engine cleanliness, excellent friction and minimum wear.</li><li>Ensures smooth engagement and disengagement as well as gear shifting</li><li>Significantly increases driving pleasure.</li><li>Tested for use with catalytic converters and on racing machines.</li><li>Application: Note the engine manufacturers&rsquo; operating instructions.</li><li>Special Note: Optimum effectiveness only when the product is used unmixed.</li><li>Product code: 20753</li></ul></div><p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "price": "2300.00", "images": [ "http://127.0.0.1:8000/media/products/dd2e8a5c-94dd-42ff-87e3-162d250e4abe.jpeg" ], "discounted_price": 1150.0, "product_type": "Oil, Fluid & Lubrication", "category": "Engine Oil", "brand": "TOYOTA", "model": "IST", "year": "2004", "variant": "", "origin": "Singapore", "weight": "4.00", "tag": "engine oil, mobil, engin oil, fluid engine, 1 no mobil, garir mobil, best car mobil, best engine oil" } ``` ## NavBar Product Type * **<base_url>/navbar-product-type/** ``` request_method--GET Status Code: 200 Example Response Body: [ { "slug": "engine-parts-714a3ab10", "name": "Engine Parts", "image": null, "categories": [ { "slug": "timing-gears-chain-and-covers-b990d2bcc", "name": "Timing Gears & Chain and Covers" }, { "slug": "crank-shafts-a2c09cf63", "name": "Crank Shafts" }, { "slug": "balance-shafts-8b301b28a", "name": "Balance Shafts" }, { "slug": "harmonic-balancers-91d9921e5", "name": "Harmonic Balancers" }, { "slug": "oil-pumps-d7ebcd846", "name": "Oil Pumps" } ] }, { "slug": "air-intake-parts-3a4d9ad86", "name": "Air Intake Parts", "image": null, "categories": [ { "slug": "air-filters-3e746e0a4", "name": "Air Filters" }, { "slug": "maf-sensors-ca14916ad", "name": "MAF Sensors" }, { "slug": "intake-manifolds-693090bca", "name": "Intake Manifolds" }, { "slug": "vacuum-pumps-6a28addd1", "name": "Vacuum Pumps" }, { "slug": "carburetors-4f31dafe5", "name": "Carburetors" } ] }, .... ] ```