{
    "success": true,
    "version": "2.0.0",
    "name": "Mandal variety E-Commerce API - Sribash Sarkar",
    "base_url": "https://api.mandal-variety.com/",
    "total_endpoints": 23,
    "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",
                "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/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/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?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?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?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/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?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?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?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/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?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/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?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/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",
                "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",
                "title": "Verify OTP",
                "description": "Verify OTP and complete registration.",
                "query": [],
                "body": {
                    "otp": "123456"
                },
                "response": {
                    "success": true,
                    "message": "Registration successful"
                }
            },
            {
                "method": "POST",
                "path": "auth/login",
                "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",
                "title": "Logout",
                "description": "Logout current user.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "message": "Logged out successfully"
                }
            },
            {
                "method": "GET",
                "path": "auth/profile",
                "title": "Profile",
                "description": "Get logged in user profile.",
                "query": [],
                "body": null,
                "response": {
                    "success": true,
                    "data": {
                        "id": 1,
                        "name": "Sribash"
                    }
                }
            }
        ]
    }
}