🚢 Enhanced Shipping Rates API
API is running with enhanced country and access level filtering!
🔐 Authentication Endpoints
POST /api/token - Get JWT access token (username, employee code, security stamp)
POST /api/login_password - Login with email and password
POST /api/refresh-token - Refresh JWT token
POST /api/logout - Logout and invalidate session
GET /api/user-info - Get current user session info (requires JWT token)
📊 Data Endpoints
GET /api/status - Check API status
GET /api/data - Load shipping data (requires JWT token)
GET /api/hapag - Get HAPAG shipping data (requires JWT token)
POST /api/refresh-data - 🔄 Manually refresh data from Google Sheets (requires JWT token)
GET /api/cache-info - View cache status and age (requires JWT token)
GET /api/routes - List all available routes
🔍 Search Endpoints
POST /api/search - Search and filter data (requires JWT token)
Example: {"query": "Colombo to New York"}
POST /api/advance - Advanced search with date filtering (requires JWT token)
Example: {"pol": "Colombo", "fpd": "New York", "date": "2025-10-20"}
✨ Features
- ✓ Country-based data filtering
- ✓ Multi-level access control (Level 1, 2, 3)
- ✓ Enhanced JWT token with user session data
- ✓ Automatic session management
- ✓ Live data streaming from Google Sheets (auto-refresh every 5 minutes)
- ✓ Unicode character support
- ✓ Date range validation
📚 Documentation
Visit /docs for interactive API documentation (Swagger UI)
Visit /redoc for alternative API documentation (ReDoc)