===================================== OCTOPUS API - BASE URL ===================================== Base URL: http://localhost/api/v1 Replace "localhost" if your server is on a different host: - Local: http://localhost/api/v1 - IP Address: http://192.168.x.x:8000/api/v1 - Domain: http://your-domain.com/api/v1 - With Port: http://localhost:8000/api/v1 ===================================== AVAILABLE ENDPOINTS ===================================== PUBLIC ENDPOINTS (No authentication required): ✅ POST /register - Register new user ✅ POST /login - Login with email/phone PROTECTED ENDPOINTS (Require Bearer token): ✅ GET /user - Get authenticated user ✅ POST /logout - Logout and revoke token ✅ POST /profile - Create user profile ✅ GET /profile - Get user profile ✅ PUT /profile - Update user profile ===================================== AUTHENTICATION ===================================== For protected endpoints, add this header to every request: Authorization: Bearer YOUR_ACCESS_TOKEN_HERE Example: Authorization: Bearer 1|abcdef123456... ===================================== POSTMAN SETUP ===================================== 1. Open Postman 2. Click Import → Select POSTMAN_COLLECTION.json 3. Replace "localhost" in URLs if needed 4. Get token from login/register response 5. Replace YOUR_ACCESS_TOKEN_HERE in Authorization headers 6. Send requests! ===================================== CURL EXAMPLE ===================================== curl -X POST http://localhost/api/v1/login \ -H "Content-Type: application/json" \ -d '{"username":"user@example.com","password":"password123"}' =====================================