Delete a doctor from the system by CRM number.
Path Parameters
The CRM number of the doctor to delete.
Response
Returns a success or error message string.
Example Request
curl -X DELETE http://localhost:8080/doctor/123456789
Example Response
Success (200 OK)
Doutor deletado com sucesso!
Error (404 Not Found)
Returns an empty response body with HTTP status 404.
Error Responses
Doctor with the specified CRM number not found. No response body is returned.
Doctor successfully deleted. Returns message: “Doutor deletado com sucesso!”