Get User
Get data User by User Id
Endpoint
Base URL
http://localhost:5000
Method and Endpoint
GET /api/users/current
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"data": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"create_at": "2024-01-15T10:20:30Z",
"update_at": "2024-02-10T14:25:35Z"
},
"message": "Get User Successfully"
}
401 (Unauthorized)
Response Body
{
"message": "Unauthorized"
}
404 (Not Found)
Response Body
{
"message": "User not found"
}
500 (server error)
Response Body
{
"message": "Internal server error"
}