diff --git a/Client/pom.xml b/Client/pom.xml
index 629e22a..183c6e4 100644
--- a/Client/pom.xml
+++ b/Client/pom.xml
@@ -38,8 +38,12 @@
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
- 2.16.0
-
+ 2.16.0
+
+
+ org.springframework.boot
+ spring-boot-starter-hateoas
+
diff --git a/Client/src/main/java/SAE/ApiREST/Client/TestArticle.java b/Client/src/main/java/SAE/ApiREST/Client/TestArticle.java
index ae1de7b..f13fbc6 100644
--- a/Client/src/main/java/SAE/ApiREST/Client/TestArticle.java
+++ b/Client/src/main/java/SAE/ApiREST/Client/TestArticle.java
@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestTemplate;
import SAE.ApiREST.Client.model.Article;
+import SAE.ApiREST.Client.model.Response;
public class TestArticle {
private static final Logger log = LoggerFactory.getLogger(ClientApplication.class);
@@ -16,14 +17,14 @@ public class TestArticle {
private RestTemplate restTemplate = new RestTemplate();
public TestArticle() {
- testPost();
+ // testPost();
- // testGetAllArticles();
+ testGetAllArticles();
testGetArticleById();
}
private void testPost() {
- Article result = new Article();
+ Response result = new Response();
Article article = new Article(
"title",
@@ -34,9 +35,10 @@ public class TestArticle {
1
);
- result = restTemplate.getForObject(
- baseURI + "/getArticleById/1",
- Article.class
+ result = restTemplate.postForObject(
+ baseURI + "/addArticle",
+ article,
+ Response.class
);
log.info(result.toString());