{
    "success": true,
    "version": "2.0.0",
    "name": "Mandal variety E-Commerce API - Sribash Sarkar",
    "base_url": "https://api.mandal-variety.com/",
    "total_endpoints": 43,
    "status": "PRODUCTION READY",
    "groups": {
        "System": [
            {
                "method": "GET",
                "path": "",
                "title": "API Home / Docs",
                "description": "Shows browser documentation for all APIs.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "status": "PRODUCTION READY"
                }
            },
            {
                "method": "GET",
                "path": "health",
                "title": "Health Check",
                "description": "Returns API uptime/basic health information.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "message": "API is running"
                }
            }
        ],
        "Categories": [
            {
                "method": "GET",
                "path": "categories/list.php",
                "title": "All Categories",
                "description": "Get all active categories.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": [
                        {
                            "id": 1,
                            "name": "Category Name"
                        }
                    ]
                }
            }
        ],
        "Products": [
            {
                "method": "GET",
                "path": "products/list.php",
                "title": "All Products",
                "description": "Get all products.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": [
                        {
                            "id": 1,
                            "name": "Product Name",
                            "price": 999
                        }
                    ]
                }
            },
            {
                "method": "GET",
                "path": "products/detail.php/1",
                "title": "Product Detail",
                "description": "Get one product by id.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "id": 1,
                        "name": "Product Name",
                        "price": 999
                    }
                }
            },
            {
                "method": "POST|PUT",
                "path": "products/manage.php/1",
                "title": "Manage Product",
                "description": "Create or update a product.",
                "query": [],
                "body": {
                    "name": "Demo Product",
                    "price": 999,
                    "stock_quantity": 10
                },
                "response": {
                    "success": true,
                    "message": "Product saved successfully"
                }
            }
        ],
        "Cart": [
            {
                "method": "GET",
                "path": "cart/cart.php?user_id=1",
                "title": "Get Cart",
                "description": "Get cart items of a user.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "user_id": 1,
                        "items": []
                    }
                }
            },
            {
                "method": "POST",
                "path": "cart/add.php?user_id=1",
                "title": "Add to Cart",
                "description": "Add product to cart.",
                "query": {
                    "user_id": 1
                },
                "body": {
                    "product_id": 1,
                    "quantity": 2
                },
                "response": {
                    "success": true,
                    "message": "Added to cart!"
                }
            },
            {
                "method": "PUT",
                "path": "cart/update.php?user_id=1",
                "title": "Update Cart",
                "description": "Update cart quantity.",
                "query": {
                    "user_id": 1
                },
                "body": {
                    "cart_item_id": 1,
                    "quantity": 3
                },
                "response": {
                    "success": true,
                    "message": "Cart updated"
                }
            },
            {
                "method": "DELETE",
                "path": "cart/remove.php/1?user_id=1",
                "title": "Remove Cart Item",
                "description": "Remove one item from cart.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "message": "Item removed"
                }
            },
            {
                "method": "DELETE",
                "path": "cart/clear.php?user_id=1",
                "title": "Clear Cart",
                "description": "Remove all cart items.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "message": "Cart cleared"
                }
            }
        ],
        "Wishlist": [
            {
                "method": "GET",
                "path": "wishlist/list.php?user_id=1",
                "title": "Get Wishlist",
                "description": "Get wishlist data.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST",
                "path": "wishlist/add.php?user_id=1",
                "title": "Add Wishlist Item",
                "description": "Add product to wishlist.",
                "query": {
                    "user_id": 1
                },
                "body": {
                    "product_id": 1
                },
                "response": {
                    "success": true,
                    "message": "Added to wishlist"
                }
            },
            {
                "method": "DELETE",
                "path": "wishlist/remove.php/1?user_id=1",
                "title": "Remove Wishlist Item",
                "description": "Remove product from wishlist.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "message": "Removed from wishlist"
                }
            }
        ],
        "Orders": [
            {
                "method": "GET",
                "path": "orders/list.php?user_id=1",
                "title": "List Orders",
                "description": "Get all orders for one user.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "orders/detail.php/1?user_id=1",
                "title": "Order Detail",
                "description": "Get one order detail.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "id": 1
                    }
                }
            },
            {
                "method": "POST",
                "path": "orders/create.php?user_id=1",
                "title": "Create Order",
                "description": "Create order from cart.",
                "query": {
                    "user_id": 1
                },
                "body": {
                    "address": "Siliguri",
                    "payment_method": "cod"
                },
                "response": {
                    "success": true,
                    "message": "Order created"
                }
            },
            {
                "method": "POST",
                "path": "orders/cancel.php/1?user_id=1",
                "title": "Cancel Order",
                "description": "Cancel pending order.",
                "query": {
                    "user_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "message": "Order cancelled"
                }
            }
        ],
        "Auth": [
            {
                "method": "POST",
                "path": "auth/register.php",
                "title": "Register",
                "description": "Register customer account.",
                "query": [],
                "body": {
                    "name": "Sribash",
                    "email": "Sribash@example.com",
                    "phone": "9876543210",
                    "password": "123456"
                },
                "response": {
                    "success": true,
                    "message": "OTP sent successfully"
                }
            },
            {
                "method": "POST",
                "path": "auth/verify.php",
                "title": "Verify OTP",
                "description": "Verify OTP and complete registration.",
                "query": [],
                "body": {
                    "otp": "123456"
                },
                "response": {
                    "success": true,
                    "message": "Registration successful"
                }
            },
            {
                "method": "POST",
                "path": "auth/login.php",
                "title": "Login",
                "description": "Login with email and password.",
                "query": [],
                "body": {
                    "email": "Sribash@example.com",
                    "password": "123456"
                },
                "response": {
                    "success": true,
                    "data": {
                        "id": 1,
                        "name": "Sribash"
                    }
                }
            },
            {
                "method": "POST",
                "path": "auth/logout.php",
                "title": "Logout",
                "description": "Logout current user.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "message": "Logged out successfully"
                }
            },
            {
                "method": "GET",
                "path": "auth/profile.php",
                "title": "Profile",
                "description": "Get logged in user profile.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "id": 1,
                        "name": "Sribash"
                    }
                }
            }
        ],
        "Reviews": [
            {
                "method": "GET",
                "path": "reviews/list.php",
                "title": "List Reviews",
                "description": "Get reviews for a product or user.",
                "query": {
                    "product_id": 1
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": [
                        {
                            "id": 1,
                            "rating": 5,
                            "comment": "Great!"
                        }
                    ]
                }
            },
            {
                "method": "POST",
                "path": "reviews/add.php",
                "title": "Add Review",
                "description": "Submit a new review.",
                "query": {
                    "user_id": 1
                },
                "body": {
                    "product_id": 1,
                    "rating": 5,
                    "title": "Awesome",
                    "comment": "Great product!"
                },
                "response": {
                    "success": true,
                    "message": "Review submitted successfully and is pending approval"
                }
            }
        ],
        "Coupons": [
            {
                "method": "GET",
                "path": "coupons/list.php",
                "title": "List Coupons",
                "description": "Get all coupons",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST|PUT|DELETE",
                "path": "coupons/manage.php",
                "title": "Manage Coupons",
                "description": "Create/Update/Delete coupons",
                "query": [],
                "body": {
                    "code": "DISCOUNT10",
                    "discount": 10
                },
                "response": {
                    "success": true,
                    "message": "Coupon created successfully"
                }
            }
        ],
        "Offers": [
            {
                "method": "GET",
                "path": "offers/list.php",
                "title": "List Offers",
                "description": "Get all offers",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST|PUT|DELETE",
                "path": "offers/manage.php",
                "title": "Manage Offers",
                "description": "Create/Update/Delete offers",
                "query": [],
                "body": {
                    "offer_name": "Summer Sale",
                    "offer_value": 20
                },
                "response": {
                    "success": true,
                    "message": "Offer created successfully"
                }
            }
        ],
        "Settings": [
            {
                "method": "GET",
                "path": "settings/get.php",
                "title": "Get Settings",
                "description": "Get all settings",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "site_name": "Store"
                    }
                }
            },
            {
                "method": "POST",
                "path": "settings/update.php",
                "title": "Update Settings",
                "description": "Update site settings",
                "query": [],
                "body": {
                    "site_name": "My New Store"
                },
                "response": {
                    "success": true,
                    "message": "Settings updated successfully"
                }
            }
        ],
        "Policies": [
            {
                "method": "GET",
                "path": "policies/list.php",
                "title": "List Policies",
                "description": "Get all policies",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "policies/detail.php?slug=privacy-policy",
                "title": "Policy Detail",
                "description": "Get single policy",
                "query": {
                    "slug": "privacy-policy"
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST|PUT|DELETE",
                "path": "policies/manage.php",
                "title": "Manage Policies",
                "description": "Create/Update/Delete policies",
                "query": [],
                "body": {
                    "title": "Privacy",
                    "content": "Data..."
                },
                "response": {
                    "success": true,
                    "message": "Policy created successfully"
                }
            }
        ],
        "Age Verifications": [
            {
                "method": "GET",
                "path": "age_verifications/list.php",
                "title": "List Verifications",
                "description": "Get verifications",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST|PUT",
                "path": "age_verifications/manage",
                "title": "Manage Verifications",
                "description": "Submit/Review verifications",
                "query": [],
                "body": {
                    "user_id": 1,
                    "full_name": "John Doe"
                },
                "response": {
                    "success": true,
                    "message": "Verification submitted successfully"
                }
            }
        ],
        "Advanced Search": [
            {
                "method": "GET",
                "path": "search/global.php",
                "title": "Global Search",
                "description": "Search across products and categories with typo handling",
                "query": {
                    "q": "milk"
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "search/products.php",
                "title": "Product Search",
                "description": "Search only products",
                "query": {
                    "q": "milk"
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "search/categories.php",
                "title": "Category Search",
                "description": "Search only categories",
                "query": {
                    "q": "milk"
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "search/suggestions.php",
                "title": "Suggestions",
                "description": "Get autocomplete suggestions",
                "query": {
                    "q": "sh"
                },
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "search/related.php",
                "title": "Related Results",
                "description": "Fallback related products",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "GET",
                "path": "search/popular.php",
                "title": "Popular Searches",
                "description": "Get popular search terms",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": []
                }
            },
            {
                "method": "POST",
                "path": "search/voice.php",
                "title": "Voice Search",
                "description": "Process voice query",
                "query": [],
                "body": {
                    "query": "milk shake"
                },
                "response": {
                    "success": true,
                    "data": []
                }
            }
        ]
    }
}