diff --git a/.idea/misc.xml b/.idea/misc.xml
index fdc35ea..de4b033 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -7,6 +7,7 @@
+
diff --git a/src/main/java/RestAPISchnittstelle/RestApiClient.java b/src/main/java/RestAPISchnittstelle/RestApiClient.java
index df31d26..8939301 100644
--- a/src/main/java/RestAPISchnittstelle/RestApiClient.java
+++ b/src/main/java/RestAPISchnittstelle/RestApiClient.java
@@ -32,11 +32,7 @@ public class RestApiClient implements IRestAPI{
RestApiClient client1 = new RestApiClient();
- ElternAccount elternAccount = new ElternAccount("hiiiiiiii", "124", "pimmel@pimmel.com");
-
- String json = client1.gson.toJson(elternAccount);
-
- client1.put("Benutzer",6, json);
+ client1.post("Gericht", "{\"name\" : \"Svens Beine\", \"69.69\", \"beschreibung\" : \"Muss net schmegge, muss wirge\"}");
}
@@ -87,13 +83,9 @@ public class RestApiClient implements IRestAPI{
// Send the request and get the response
HttpResponse httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());
- Kind[] test = gson.fromJson(httpResponse.body(), Kind[].class);
-
// Print the response status code and body
- System.out.println("Status Code: " + httpResponse.statusCode());
- for(Kind i : test){
- System.out.println(i.getVorname());
- }
+ System.out.println("Status Code: " + httpResponse.statusCode() + httpResponse.body());
+
//System.out.println("Response Body: " + test);
} catch (Exception e) {
e.printStackTrace();