petcare-api / README.md
Sameer669
Initial PawCare Django backend with JWT auth, RBAC, audit logging, and HF storage
4f01198
---
title: PawCare API
emoji: 🐾
colorFrom: purple
colorTo: indigo
sdk: docker
pinned: false
app_port: 7860
---
# PawCare Backend API
Django REST API for the PawCare pet care booking platform.
## Endpoints
| Method | Path | Description |
|--------|------|-------------|
| POST | `/api/auth/login/` | JWT login |
| POST | `/api/auth/register/` | Register new user |
| POST | `/api/auth/logout/` | Blacklist refresh token |
| POST | `/api/auth/refresh/` | Refresh access token |
| GET/PATCH | `/api/auth/me/` | Own profile |
| GET | `/api/caregivers/` | List caregivers (filterable) |
| GET | `/api/caregivers/{id}/` | Caregiver detail |
| GET | `/api/services/` | List services |
| GET/POST | `/api/pets/` | Manage own pets |
| GET/POST | `/api/bookings/` | Bookings |
| PATCH | `/api/bookings/{id}/status/` | Update booking status |
| POST | `/api/bookings/{id}/review/` | Leave review |
| GET | `/api/conversations/` | Messaging |
| POST | `/api/upload-image/` | Upload to HF Hub |
| GET | `/api/admin/stats/` | Dashboard stats (admin) |
| GET | `/api/docs/` | Swagger UI |
## Admin Panel
`/admin/` — Django Admin for caregiver management (requires superuser).