Init PocketBase Client

This commit is contained in:
2022-09-14 16:08:00 +02:00
parent 5331ce911b
commit 8028436d2c
6 changed files with 1292 additions and 0 deletions

20
save_to_api.py Normal file
View File

@@ -0,0 +1,20 @@
import requests
class SaveToApi:
pass
class Pacienti:
def __init__(self, emer: str, mbiemer: str, mosha: int):
self.emer = emer
self.mbiemer = mbiemer
self.mosha = mosha
self.api_basepath = "http://127.0.0.1:8090/api/"
self.krijo_endpoint = "/api/collections/pacientet/records"
def krijo_pactient(self):
pactienti = {"emer": self.emer,
"mbiemer": self.mbiemer, "mosha": self.mosha}