0
Public Endpoints
0
User Endpoints
0
Admin Endpoints
0
Total Endpoints
🌐 Public API Endpoints
Không cần authentication - Truy cập công khai
👤 User API Endpoints
Yêu cầu authentication - Dành cho người dùng đã đăng nhập
🔧 Admin API Endpoints
Yêu cầu admin authentication - Dành cho quản trị viên
📚 API Usage Examples
Ví dụ sử dụng API với các phương thức HTTP
🌐 Public API Example
GET/api/public/products
# Lấy danh sách sản phẩm công khai
Query Params:
?page=1&limit=20&search=keyword👤 User API Example
POST/api/private/user/cart
# Thêm sản phẩm vào giỏ hàng
Headers: Authorization: Bearer <JWT_TOKEN>
Body: {"product_id": 1, "quantity": 2}
🔧 Admin API Example
POST/api/private/admin/products
# Tạo sản phẩm mới
Headers: Authorization: Bearer <ADMIN_JWT_TOKEN>
Body: {"name": "Product Name", "price": 100000}
🔐 Authentication
Hướng dẫn xác thực API
Login để lấy JWT Token
POST/api/public/auth/login
# Đăng nhập để lấy JWT token
Body: {"email": "user@example.com", "password": "password"}
Response: {"token": "jwt_token_here", "user": {...}}
🚀 Shop House E-commerce API
Generated automatically from route definitions