| import requests |
|
|
| print('=== AutoSEO Engine - Comprehensive Health Check ===') |
| print() |
|
|
| |
| try: |
| health = requests.get('http://127.0.0.1:8000/health') |
| print(f'β
Health Check: {health.json()}') |
| except Exception as e: |
| print(f'β Health Check Failed: {e}') |
|
|
| |
| try: |
| root = requests.get('http://127.0.0.1:8000/') |
| print(f'β
Root Endpoint: {root.json()}') |
| except Exception as e: |
| print(f'β Root Endpoint Failed: {e}') |
|
|
| |
| try: |
| stats = requests.get('http://127.0.0.1:8000/stats') |
| data = stats.json() |
| print(f'β
Stats Retrieved: MRR=${data["customer_metrics"]["mrr"]}, Customers={data["customer_metrics"]["total_customers"]}') |
| except Exception as e: |
| print(f'β Stats Endpoint Failed: {e}') |
|
|
| |
| try: |
| revenue = requests.get('http://127.0.0.1:8000/revenue/dashboard') |
| data = revenue.json() |
| print(f'β
Revenue Dashboard Retrieved: MRR=${data["customer_metrics"]["mrr"]}') |
| except Exception as e: |
| print(f'β Revenue Dashboard Failed: {e}') |
|
|
| |
| try: |
| customers = requests.get('http://127.0.0.1:8000/customers') |
| data = customers.json() |
| print(f'β
Customers Retrieved: {len(data["customers"])} customers') |
| except Exception as e: |
| print(f'β Customers Endpoint Failed: {e}') |
|
|
| print() |
| print('=== Browser Access Instructions ===') |
| print('Open your browser and navigate to:') |
| print('- Health: http://127.0.0.1:8000/health') |
| print('- API Docs: http://127.0.0.1:8000/docs') |
| print('- Stats: http://127.0.0.1:8000/stats') |
| print('- Dashboard: http://127.0.0.1:8000/revenue/dashboard') |
| print() |
| print('All systems are operational and accessible via browser!') |