diagnoVET

diagnoVET Patient Manager

Your centralized hub for patient information.

Name
Tutor
Actions
BuddyDoe, John
LucySmith, Jane
RockyJones, Peter
MistyWhite, Emily
MaxGreen, 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/patients

Example usage with curl:

curl http://localhost:9002/api/patients

Create a New Patient

Creates a new patient record. The request body must match the patient schema.

POST /api/patients

Example 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/1

Update 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