Files
bookhoard/bruno/auth/Login User.bru
T

46 lines
637 B
Plaintext

meta {
name: Login User
type: http
seq: 2
}
post {
url: {{base_url}}/api/auth/login
body: json
auth: inherit
}
body:json {
{
"login": "test@example.com",
"password": "password123"
}
}
docs {
## Login User
Authenticates a user with email/username and password.
**Method:** POST
**Endpoint:** /api/auth/login
**Request Body:**
- `login` (string): Email or username
- `password` (string): Password
**Response:**
- `token` (string): JWT token
- `user` (object): User details
**Status Codes:**
- 200: Success
- 401: Invalid credentials
}
settings {
encodeUrl: true
timeout: 0
}