diverses
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user