import requests

url = "http://localhost:9600/open_code_in_vs_code"

# Valid request
valid_payload = {"discussion_id": "0", "message_id": "0", "code": "print('test')"}
response = requests.post(url, json=valid_payload)
print("Valid request response:", response.json())

# Invalid request
invalid_payload = {
    "discussion_id": "../invalid_discussion",
    "message_id": "../invalid_message",
    "code": "print('test')",
}
response = requests.post(url, json=invalid_payload)
print("Invalid request response:", response.json())
