from pathlib import Path
import sys

PROJECT_ROOT = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(PROJECT_ROOT))

from explorer.gateway.client import GatewayClient

client = GatewayClient(
    "http://localhost/manyfest/explorerAssistGPT/gateway/api"
)

print("Gateway Client Created")
print(client.base_url)

print()
print("Calling health endpoint...")

response = client.get("health.php")

print()
print("Gateway Response:")

print()
print("Calling project endpoint...")

response = client.get(
    "project.php",
    alias="authoring"
)

print()
print("Project Response:")
print(response)

print(response)