This commit is contained in:
2024-01-08 11:13:24 +01:00
parent c967746bba
commit 8be72640a7
4 changed files with 30 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import Logik.ElternAccount;
import Logik.Kind;
import com.google.gson.Gson;
@@ -27,6 +28,18 @@ public class RestApiClient implements IRestAPI{
gson = new Gson();
}
public static void main(String[] args){
RestApiClient client1 = new RestApiClient();
ElternAccount elternAccount = new ElternAccount("hiiiiiiii", "124", "pimmel@pimmel.com");
String json = client1.gson.toJson(elternAccount);
client1.put("Benutzer",6, json);
}
/**
* Methode für einen Get-Aufruf. Ruft alle Elemente einer Tabelle auf.
*