NOT IMPLEMENTED: The PacienteController is empty in the source code. These endpoints are architectural documentation only and will return 404 errors if called. Only the Especialidad endpoints are currently functional.
The Pacientes (Patients) resource is architecturally designed to provide CRUD operations for managing patient records. The data model is defined, but the controller endpoints are not yet implemented.
Response: 200 OKReturns the patient object (same structure as above).Response: 404 Not FoundReturned when the patient with the specified ID doesn’t exist.Example Request:
curl -X GET "https://localhost:5001/api/Paciente/1" \ -H "Content-Type: application/json"
Patient’s date of birth in ISO 8601 format (YYYY-MM-DD)
Response: 201 CreatedReturns the created patient object with the assigned ID.Response: 400 Bad RequestReturned when validation fails.Response: 409 ConflictReturned when a patient with the same DNI already exists.Example Request:
Patient’s date of birth in ISO 8601 format (YYYY-MM-DD)
Response: 200 OKReturns the updated patient object.Response: 404 Not FoundReturned when the patient with the specified ID doesn’t exist.Response: 400 Bad RequestReturned when validation fails.Response: 409 ConflictReturned when the updated DNI conflicts with another existing patient.Example Request:
Response: 204 No ContentReturned when the patient is successfully deleted.Response: 404 Not FoundReturned when the patient with the specified ID doesn’t exist.Example Request: