POST /api/login
| Parameter | Type | Description | Required |
|---|---|---|---|
username |
string | The user's username | Yes |
password |
string | The user's password | Yes |
| Property | Type | Description |
|---|---|---|
access_token |
string | The authentication token provided to access protected resources. |
token_type |
string | The type of the authentication token, typically Bearer. |
user |
object | An object containing the authenticated user's information, such as their ID, name, department, etc. |
| Status Code | Description |
|---|---|
400 |
Invalid Data - The provided value is not found or invalid. |
422 |
Unprocessable Content - Invalid or missing required field(s). |
401 |
Unauthorized - Incorrect credentials provided. |