Download scripts/test_register.py from Mohansree/bsure-api: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/Mohansree/bsure-api/resolve/main/scripts/test_register.py
- Command line
-
hf download hf://spaces/Mohansree/bsure-api/scripts/test_register.py
-
curl -L -o test_register.py https://huggingface.co/spaces/Mohansree/bsure-api/resolve/main/scripts/test_register.py
380 Bytes
| import requests | |
| try: | |
| response = requests.post( | |
| "http://localhost:8000/auth/register", | |
| json={ | |
| "email": "test@example.com", | |
| "password": "password123", | |
| "full_name": "Test User" | |
| } | |
| ) | |
| print(f"Status: {response.status_code}") | |
| print(f"Response: {response.text}") | |
| except Exception as e: | |
| print(f"Error: {e}") | |