curl --request POST \
--url https://api.example.com/doctor/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"400 Bad Request": {},
"401 Unauthorized": {}
}curl --request POST \
--url https://api.example.com/doctor/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"400 Bad Request": {},
"401 Unauthorized": {}
}curl -X POST http://localhost:8080/doctor/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securePassword123"
}'
Login successful!
Invalid email or password.