{"success":true,"name":"GamersBD API Server","version":"1.0.0","description":"Complete e-commerce API for toys and games","status":"operational","timestamp":"2026-04-04T12:04:49.292Z","uptime":2749.322872283,"environment":"production","documentation":{"api":"http://gamersbd-server.onrender.com/api","health":"http://gamersbd-server.onrender.com/api/health","auth":"http://gamersbd-server.onrender.com/api/auth","products":"http://gamersbd-server.onrender.com/api/products","categories":"http://gamersbd-server.onrender.com/api/categories","brands":"http://gamersbd-server.onrender.com/api/brands","cart":"http://gamersbd-server.onrender.com/api/cart","orders":"http://gamersbd-server.onrender.com/api/orders","wishlist":"http://gamersbd-server.onrender.com/api/wishlist","compare":"http://gamersbd-server.onrender.com/api/compare","users":"http://gamersbd-server.onrender.com/api/users"},"endpoints":{"health":{"get":"/api/health - System health check with uptime and status"},"auth":{"post":{"register":"/api/auth/register - Create new user account","login":"/api/auth/login - Authenticate user and get token","logout":"/api/auth/logout - Invalidate user session","refresh-token":"/api/auth/refresh-token - Get new access token"},"get":{"profile":"/api/auth/profile - Get current user profile"}},"products":{"get":{"/api/products":"List all products (paginated with filters)","/api/products/:id":"Get single product by ID","/api/products/slug/:slug":"Get product by slug","/api/products/featured":"Get featured products","/api/products/deals":"Get products on sale/deals"},"post":"/api/products - Create new product (admin)","put":"/api/products/:id - Update product (admin)","delete":"/api/products/:id - Delete product (admin)"},"categories":{"get":{"/api/categories":"Get all categories","/api/categories/:id":"Get single category","/api/categories/:id/products":"Get products by category"},"post":"/api/categories - Create new category (admin)","put":"/api/categories/:id - Update category (admin)","delete":"/api/categories/:id - Delete category (admin)"},"brands":{"get":{"/api/brands":"Get all brands","/api/brands/:id":"Get single brand","/api/brands/:id/products":"Get products by brand"},"post":"/api/brands - Create new brand (admin)","put":"/api/brands/:id - Update brand (admin)","delete":"/api/brands/:id - Delete brand (admin)"},"cart":{"get":{"/api/cart":"Get current user's cart","/api/cart/count":"Get total items count in cart","/api/cart/validate":"Validate cart before checkout"},"post":"/api/cart/add - Add item to cart","put":"/api/cart/update/:itemId - Update cart item quantity","delete":{"/api/cart/remove/:itemId":"Remove specific item from cart","/api/cart/clear":"Clear entire cart"}},"orders":{"get":{"/api/orders":"Get all orders (admin)","/api/orders/my-orders":"Get current user's orders","/api/orders/:id":"Get single order by ID","/api/orders/:id/payment":"Get payment details","/api/orders/:id/tracking":"Get order tracking history","/api/orders/stats/dashboard":"Get order statistics (admin)"},"post":{"/api/orders/checkout":"Create new order from cart"},"put":{"/api/orders/:id/status":"Update order status (admin/editor)","/api/orders/:id/payment":"Update payment status (admin/editor)","/api/orders/:id/tracking":"Add tracking information (admin/editor)","/api/orders/:id/cancel":"Cancel order (user)","/api/orders/bulk-status":"Bulk update order status (admin)"}},"wishlist":{"get":{"/api/wishlist":"Get user's wishlist","/api/wishlist/check/:productId":"Check if product is in wishlist","/api/wishlist/shared/:shareId":"Get public shared wishlist"},"post":{"/api/wishlist/add/:productId":"Add product to wishlist","/api/wishlist/move-to-cart/:itemId":"Move wishlist item to cart"},"put":{"/api/wishlist/settings":"Update wishlist settings (name, privacy)"},"delete":{"/api/wishlist/remove/:itemId":"Remove item from wishlist","/api/wishlist/clear":"Clear entire wishlist"}},"compare":{"get":{"/api/compare":"Get user's compare list","/api/compare/table":"Get comparison table with all specs"},"post":{"/api/compare/add/:productId":"Add product to compare"},"delete":{"/api/compare/remove/:itemId":"Remove product from compare","/api/compare/clear":"Clear compare list"},"put":{"/api/compare/settings":"Update compare settings (admin)"}},"users":{"get":{"/api/users/profile":"Get user profile","/api/users/addresses":"Get user addresses"},"put":"/api/users/profile - Update user profile","post":"/api/users/addresses - Add new address","delete":"/api/users/addresses/:id - Delete address"}},"links":{"self":"http://gamersbd-server.onrender.com","api":"http://gamersbd-server.onrender.com/api","health":"http://gamersbd-server.onrender.com/api/health","github":"https://github.com/yourusername/gamersbd-server"}}