API Documentation
Welcome to the Paanidost API documentation. Below are the available endpoints:
Authentication
POST /api/auth/register - Register a new user
POST /api/auth/login - Login user
POST /api/auth/forgot-password - Send OTP for password reset
POST /api/auth/reset-password - Reset password with OTP
POST /api/auth/change-password - Change password (authenticated)
GET /api/auth/me - Get current user profile
Users
GET /api/users - Get all users (admin only)
GET /api/users/:id - Get user by ID
PUT /api/users/:id - Update user
DELETE /api/users/:id - Delete user
GET /api/users/vendors/nearby - Get all vendors with distance calculation
GET /api/users/vendors/by-distance - Get all vendors by distance with optional category filter
GET /api/users/drivers/vendor/:vendorId? - Get all drivers for a vendor
More endpoints will be added as they are implemented.