Init Repo
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import requests
|
||||
|
||||
# Test deleting user ID 5
|
||||
url = "http://localhost:8000/users/5/admin"
|
||||
|
||||
# You'll need to replace this with a valid admin token
|
||||
headers = {
|
||||
"Authorization": "Bearer YOUR_ADMIN_TOKEN_HERE"
|
||||
}
|
||||
|
||||
response = requests.delete(url, headers=headers)
|
||||
print(f"Status Code: {response.status_code}")
|
||||
print(f"Response: {response.json()}")
|
||||
Reference in New Issue
Block a user