sample commands
This commit is contained in:
parent
74a22c2721
commit
5709b6224e
2 changed files with 17 additions and 0 deletions
10
send_json.py
Normal file
10
send_json.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
r = requests.post("http://localhost:8080/api/v1/security/login", data='{"username": "admin", "password": "admin", "provider": "db"}')
|
||||
print(r.text)
|
||||
print(r["access_token"])
|
||||
|
||||
r = requests.get("http://localhost:8080/api/v1/spiel/", auth=("admin","admin"))
|
||||
|
||||
print(r)
|
||||
Loading…
Add table
Add a link
Reference in a new issue