Authorization: Bearer ********************
{
"email": "johndoe@example.com",
"password": "password123"
}
curl --location --request POST 'http://localhost:8000/api/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "johndoe@example.com",
"password": "password123"
}'
{
"status": 200,
"data": {
"user": {
"id": 1,
"name": "johndoe",
"email": "johndoe@example.com",
"email_verified_at": null,
"created_at": "2025-03-13T08:44:50.000000Z",
"updated_at": "2025-03-13T08:44:50.000000Z"
},
"token": "1|n5PAatFysXxc7S48ScaEfkmpmF9F33WCWnMe4ScWf3a38652"
},
"message": "Login successful"
}