API-Server Frist Try

This commit is contained in:
2023-08-14 22:24:38 +02:00
commit 6952203a61
8 changed files with 106 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import requests
def request(function,variable):
url = (f"http://127.0.0.1:8000/{function}/")
response = requests.post(url,json = variable)
return response
print(request("database_get", {'name':'Jaehler-GmbH'}).text)