import requests
import json

# Test getting beach schedules
beach_id = "39ede4e0-7304-4999-be4e-d48d869a7a88"  # Falassarna Beach
url = f"http://localhost:8080/api/beach-schedules/{beach_id}"

print(f"Testing GET request to {url}")

try:
    response = requests.get(url)
    print(f"Status Code: {response.status_code}")
    print(f"Response: {response.text}")
except Exception as e:
    print(f"Error: {e}")

# Test adding a new schedule
print("\nTesting POST request to add a new schedule")

new_schedule = {
    "from_date": "2025-10-15",
    "to_date": "2025-12-15",
    "from_time": "09:00",
    "to_time": "18:00",
    "valid_dates": "1234567",
    "min_hours": 2,
    "currency_id": 1,
    "price": 15.00,
    "price_vip": 25.00,
    "can_refund": True,
    "refund_before_hours": 24,
    "extras": "Umbrella +5€",
    "extras_vip": "Premium Umbrella +10€"
}

try:
    response = requests.post(url, json=new_schedule)
    print(f"Status Code: {response.status_code}")
    print(f"Response: {response.text}")
except Exception as e:
    print(f"Error: {e}")