Initial commit: Audio Dashboard Management System
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
try:
|
||||
response = requests.get("http://localhost:8001/api/brands/", params={"skip": 0, "limit": 10})
|
||||
print(f"Status Code: {response.status_code}")
|
||||
print(f"Content-Type: {response.headers.get('content-type')}")
|
||||
print(f"Response: {response.text[:500]}")
|
||||
if response.status_code == 200:
|
||||
data = response.json()
|
||||
print(f"\nSuccess! Got {len(data)} brands")
|
||||
for brand in data[:5]:
|
||||
print(f" - {brand}")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user