Was this helpful?
Endpoints for authentication
Enter credentials to get JWT token.
Request for user authentication
Username of the user
john_doe
Password of the user
password123
Response containing authentication token
POST /api/auth/login HTTP/1.1 Host: localhost:8080 Content-Type: application/json Accept: */* Content-Length: 48 { "username": "john_doe", "password": "password123" }
OK
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }