Welcome to the most magical healthcare API this side of Hogwarts! We've combined the healing powers of Go with the sorcery of modern web technologies to create an API so powerful, it might just cure the common cold (disclaimer: it won't).
- Appointment Scheduling: Because time-turners are so last century.
- Patient Management: Keep track of your patients better than Dumbledore kept track of Harry.
- Doctor Management: Organize your healers like McGonagall organizes her class schedule.
- User Authentication: More secure than Gringotts, less grumpy than goblins.
- Go (version 1.16+)
- PostgreSQL (because even wizards need reliable databases)
- A sense of humor (critical for debugging)
POST /api/register
Body:
{
"email": "harry.potter@hogwarts.edu",
"password": "ExpectoAPIum!",
"role": "patient"
}
POST /api/login
Body:
{
"email": "harry.potter@hogwarts.edu",
"password": "ExpectoAPIum!"
}
GET /api/patients
GET /api/patients/:id
PUT /api/patients/:id
GET /api/doctors
GET /api/doctors/:id
PUT /api/doctors/:id
POST /api/appointments
Body:
{
"patient_id": 1,
"doctor_id": 2,
"date_time": "2023-05-01T14:30:00Z",
"description": "Wand arm feeling a bit wonky"
}
GET /api/appointments
PUT /api/appointments/:id
DELETE /api/appointments/:id
Run tests faster than Snape takes points from Gryffindor:
go test ./...
- Summon a Docker container:
docker-compose up --build
- Deploy to the cloud using Vercel, because even APIs need a little magic in the sky.
Contributions are welcome! Just make sure your code is cleaner than Filch's mop and more organized than Hermione's study schedule.
This project is licensed under the Spell-It-Yourself License. Use it wisely, and may your code always compile on the first try!