many updates

This commit is contained in:
2026-01-11 06:06:43 -08:00
parent 67357b5038
commit 4bb86b603e
73 changed files with 2881 additions and 59 deletions

View File

@@ -0,0 +1,28 @@
import requests
import json
URL = "http://localhost:8000/api/segments/save_custom"
def test_save_custom():
payload = {
"name": "Test Segment Discovered",
"description": "Created via API test",
"activity_type": "cycling",
"points": [
[151.2093, -33.8688, 10],
[151.2100, -33.8690, 15],
[151.2110, -33.8700, 20]
]
}
try:
res = requests.post(URL, json=payload)
print(f"Status: {res.status_code}")
print(f"Response: {res.text}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
test_save_custom()