workspace working

This commit is contained in:
2026-01-12 22:31:11 +08:00
parent 2738a822d1
commit 370fe6368a
149 changed files with 4648 additions and 660 deletions

23
test_paginated_default.py Normal file
View File

@@ -0,0 +1,23 @@
import requests
import json
url = "http://localhost:3015/documents/paginated"
headers = {
"X-API-Key": "jleu1212",
"Content-Type": "application/json",
# No X-Workspace header
}
payload = {
"page": 1,
"page_size": 10,
"status_filter": None,
"sort_field": "updated_at",
"sort_direction": "desc"
}
response = requests.post(url, headers=headers, json=payload)
print(f"Status: {response.status_code}")
if response.status_code != 200:
print(f"Error: {response.text}")
else:
print(json.dumps(response.json(), indent=2))