curl --request DELETE \
--url https://api.example.com/patients/delete/{cpf}{}
curl --request DELETE \
--url https://api.example.com/patients/delete/{cpf}{}
curl -X DELETE http://localhost:8080/patients/delete/12345678901
Paciente deletado com sucesso
{}
{
"error": "Internal server error",
"message": "An unexpected error occurred"
}