From e515d6346ce240dffb1136a44b0dc10a3999abd5 Mon Sep 17 00:00:00 2001
From: BEAUVAIS ANTOINE <antoine.beauvais@etu.unistra.fr>
Date: Sun, 26 Sep 2021 17:05:06 +0200
Subject: [PATCH] Updated documentation & GSON.

---
 README.fr.md              | 13 +++++++------
 README.md                 |  9 +++++----
 build.gradle              |  4 ++--
 public/openapi/index.html |  2 +-
 4 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/README.fr.md b/README.fr.md
index 78405d3..0596689 100644
--- a/README.fr.md
+++ b/README.fr.md
@@ -15,12 +15,14 @@ sur les produits disponibles tels que les prix de chaque article.
 
 ### Documentation
 
-L'API REST est documentée à travers un document OpenAPI qui peut être visionné 
-sur l'éditeur en ligne [SwaggerHub](https://editor.swagger.io/).
+[Accueil documentation](https://erp-sil.pages.unistra.fr/back/)
+
+L'API REST est documentée à travers un document OpenAPI qui peut être consulté 
+[ici](https://erp-sil.pages.unistra.fr/back/openapi/index.html).
 
 La documentation Java (Javadoc) du projet est généré automatiquement par 
 le système d'intégration continue (CI) pour chaque révision de la branche `master` 
-et peut être consultée [ici](https://erp-sil.pages.unistra.fr/back/) (en anglais).
+et peut être consultée [ici](https://erp-sil.pages.unistra.fr/back/javadoc/index.html) (en anglais).
 
 ### Exécution
 
@@ -31,7 +33,7 @@ Gradle permet d'essayer rapidement l'application en lançant un serveur
 Web de test [Apache TomCat](https://tomcat.apache.org/) hébergeant 
 le programme. Il permet également de la déployer rapidement sous la forme
 d'une archive WAR pouvant être installée sur un serveur de production 
-Apache TomCat ou [Oracle Glassfish](https://www.oracle.com/middleware/technologies/glassfish-server.html).
+Apache TomCat ou [Eclipse Glassfish](https://glassfish.org/).
 
 Il est conseillé d'utiliser un IDE Java pour exécuter et déployer l'application.
 
@@ -85,8 +87,7 @@ ou, sur Microsoft Windows,
 
 ### Appel de l'API
 
-Passez par [SwaggerHub](https://editor.swagger.io/) pour ouvrir le fichier `back-openapi.yaml`, 
-qui est un document OpenAPI.
+Vous pouvez trouver la documentation [ici](https://erp-sil.pages.unistra.fr/back/openapi/index.html).
 
 Utilisez [Postman](https://www.postman.com/) ou [Advanced REST Client](https://install.advancedrestclient.com/install) pour l'appeler l'API REST.
 
diff --git a/README.md b/README.md
index 8f8b31f..6acb5db 100644
--- a/README.md
+++ b/README.md
@@ -16,11 +16,13 @@ price.
 
 ### Documentation
 
+[Documentation Home](https://erp-sil.pages.unistra.fr/back/)
+
 The RESTful API is documented through an OpenAPI specification file that you can
-open through [SwaggerHub](https://editor.swagger.io/).
+view [here](https://erp-sil.pages.unistra.fr/back/openapi/index.html).
 
 The project's Javadoc is automatically generated through CI for each commit
-on the `master` branch and can be found [here](https://erp-sil.pages.unistra.fr/back/).
+on the `master` branch and can be found [here](https://erp-sil.pages.unistra.fr/back/javadoc/index.html).
 
 ### Running
 
@@ -81,8 +83,7 @@ or, on Microsoft Windows,
 
 ### Calling the API
 
-Go to [SwaggerHub](https://editor.swagger.io/) to open the `back-openapi.yaml` file, which is
-an OpenAPI specification document.
+You can view the documentation [here](https://erp-sil.pages.unistra.fr/back/openapi/index.html).
 
 Use [Postman](https://www.postman.com/) or [Advanced REST Client](https://install.advancedrestclient.com/install) to make calls to the RESTful API.
 
diff --git a/build.gradle b/build.gradle
index 8221f3b..e73b369 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,9 +15,9 @@ repositories {
 
 dependencies {
 
-        implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
+    implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
 
-        implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
+    implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.8'
 
 	implementation 'org.springframework.boot:spring-boot-starter-web'
 	providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
diff --git a/public/openapi/index.html b/public/openapi/index.html
index 2a9d4e2..ee1ea1f 100755
--- a/public/openapi/index.html
+++ b/public/openapi/index.html
@@ -39,7 +39,7 @@
     window.onload = function() {
       // Begin Swagger UI call region
       const ui = SwaggerUIBundle({
-        url: "https://petstore.swagger.io/v2/swagger.json",
+        url: "https://erp-sil.pages.unistra.fr/back/openapi/openapi.json",
         dom_id: '#swagger-ui',
         deepLinking: true,
         presets: [
-- 
GitLab