๐
Sanctum Authentication
Secure phone/password authentication with API tokens
๐ฅ
Profile Management
Advanced profile browsing, search, and management
๐ฌ
Real-time Messaging
Chat system with read/unread status tracking
๐ผ๏ธ
Image Storage
Profile photos and gallery management
๐ณ
PhonePe Payments
Premium subscription payments integration
๐ฑ
Flutter Ready
Complete API for mobile app development
๐ Authentication Endpoints
POST/api/auth/register
Register new user with phone, email, and password
POST/api/auth/login
Login with phone and password, returns API token
GET/api/auth/me
Get authenticated user details
๐ฅ User Management Endpoints
GET/api/users/browse
Browse profiles with filters (gender, age, caste, city)
GET/api/users/search?q=term
Search profiles by name, caste, or profession
PUT/api/users/profile
Update user profile information
๐ฌ Messaging Endpoints
POST/api/messages/send
Send message to another user
GET/api/messages/conversations
Get all user conversations with last messages
GET/api/messages/conversation/{userId}
Get conversation history with specific user
๐ผ๏ธ Image Management Endpoints
POST/api/images/upload-profile
Upload profile photo (multipart/form-data)
POST/api/images/upload-gallery
Upload multiple gallery images
GET/api/images/gallery
Get user's profile photo and gallery images
๐งช Quick API Test
Server URL: http://localhost:8000
API Base: http://localhost:8000/api/
Test Registration:
curl -X POST http://localhost:8000/api/auth/register \
-H "Content-Type: application/json" \
-d '{
"phone": "9876543210",
"email": "test@example.com",
"password": "password123",
"first_name": "Rahul",
"last_name": "Sharma",
"date_of_birth": "1995-06-15",
"gender": "male",
"profile_creator": "self"
}'
Test Login:
curl -X POST http://localhost:8000/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"phone": "9876543210",
"password": "password123"
}'
๐ก Pro Tips:
- Use the API token from login in Authorization header:
Bearer YOUR_TOKEN
- Test with Postman or any REST client
- All protected endpoints require authentication
- Images are stored in
storage/app/public/ directory