/auth/loginĐăng nhập và nhận Bearer token
Tham số
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
email | string | ● | Địa chỉ email của tài khoản |
password | string | ● | Mật khẩu |
Request Body (JSON)
{
"email": "user@example.com",
"password": "secret123"
}Response (200 OK)
{
"access_token": "eyJ0eXAiOiJKV1QiLC...",
"token_type": "Bearer",
"user": {
"id": 1,
"fullname": "Nguyễn Văn A",
"email": "user@example.com"
}
}