curl --request POST \
--url https://api.example.com/patients/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'Invalid email or password.
curl --request POST \
--url https://api.example.com/patients/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'Invalid email or password.
curl -X POST http://localhost:8080/patients/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securePassword123"
}'
Login successful!
Invalid email or password.
{
"error": "Internal server error",
"message": "An unexpected error occurred"
}