diagnoVET
diagnoVET Patient Manager
Your centralized hub for patient information.
Name | Tutor | Actions |
|---|---|---|
| Buddy | Doe, John | |
| Lucy | Smith, Jane | |
| Rocky | Jones, Peter | |
| Misty | White, Emily | |
| Max | Green, Michael |
API Endpoints
You can interact with the patient data programmatically using these API endpoints.
Get All Patients
Retrieves a list of all patients.
GET /api/patientsExample usage with curl:
curl http://localhost:9002/api/patientsCreate a New Patient
Creates a new patient record. The request body must match the patient schema.
POST /api/patientsExample usage with curl:
curl -X POST http://localhost:9002/api/patients -H "Content-Type: application/json" -d '{"name": "Rex", ...}'Get a Patient by ID
Retrieves a single patient by their unique ID.
GET /api/patients/[id]Example usage with curl:
curl http://localhost:9002/api/patients/1Update a Patient
Updates an existing patient's record by their ID.
PUT /api/patients/[id]Example usage with curl:
curl -X PUT http://localhost:9002/api/patients/1 -H "Content-Type: application/json" -d '{"neutered": true, ...}'Delete a Patient
Deletes a patient's record by their ID.
DELETE /api/patients/[id]Example usage with curl:
curl -X DELETE http://localhost:9002/api/patients/1