diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 00000000..9b456ffe
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,38 @@
+# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
+
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up JDK 21
+ uses: actions/setup-java@v4
+ with:
+ java-version: '21'
+ distribution: 'temurin'
+ cache: maven
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+
+ # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
+ - name: Update dependency graph
+ uses: advanced-security/maven-dependency-submission-action@bfd2106013da0957cdede0b6c39fb5ca25ae375e
+
+ - name: Coveralls GitHub Action
+ uses: coverallsapp/github-action@v2.2.3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a29ee1a2..b6fcf9c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 1.1.0 - [2024-02-23]
+
+### Fixed
+- Upgrade to Java 21
+
+### Added
+- End point to delete all responses of one questionnaire
+
## 1.0.7 - [2024-02-13]
### Fixed
diff --git a/README.md b/README.md
index 5eaeaea6..cf0b484e 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![Coverage Status](https://coveralls.io/repos/github/InseeFr/Genesis-API/badge.svg?branch=main)](https://coveralls.io/github/InseeFr/Genesis-API?branch=main)
+
# Genesis Api
-The Genesis API will provide an interface with the responses' referential (Genesis DB)
\ No newline at end of file
+The Genesis API will provide an interface with the responses' referential (Genesis DB)
diff --git a/pom.xml b/pom.xml
index d9d9ab9d..3c6008ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,22 +4,21 @@
4.0.0
fr.insee.genesis
genesis-api
- 1.0.7
+ 1.1.0
jar
genesis-api
org.springframework.boot
spring-boot-starter-parent
- 3.2.2
+ 3.2.3
- 17
- 2.3.0
+ 21
+ 2.4.0
1.5.5.Final
7.15.0
- 1.3.1
0.8.11
jacoco
@@ -29,6 +28,7 @@
1.15.8
1.2.1
+ 2.16.2
@@ -85,11 +85,6 @@
springdoc-openapi-starter-webmvc-ui
${springdoc.version}
-
- org.postgresql
- postgresql
- runtime
-
@@ -99,12 +94,14 @@
12.4
+
- com.googlecode.json-simple
- json-simple
- 1.1.1
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson.version}
+
org.mapstruct
mapstruct
@@ -131,14 +128,6 @@
test
-
-
-
- com.intuit.karate
- karate-junit4
- ${karate.version}
- test
-
org.junit.vintage
@@ -153,12 +142,12 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.12.1
+ 3.13.0
org.sonarsource.scanner.maven
sonar-maven-plugin
- 3.10.0.2594
+ 3.11.0.3922
org.jacoco
@@ -173,7 +162,7 @@
report
- report
+ post-integration-test
report-aggregate
diff --git a/src/main/java/fr/insee/genesis/controller/rest/ResponseController.java b/src/main/java/fr/insee/genesis/controller/rest/ResponseController.java
index 00124f71..6f13a08d 100644
--- a/src/main/java/fr/insee/genesis/controller/rest/ResponseController.java
+++ b/src/main/java/fr/insee/genesis/controller/rest/ResponseController.java
@@ -17,18 +17,17 @@
import fr.insee.genesis.exceptions.GenesisException;
import fr.insee.genesis.exceptions.NoDataError;
import fr.insee.genesis.infrastructure.utils.FileUtils;
-import fr.insee.genesis.infrastructure.utils.JSONUtils;
import io.swagger.v3.oas.annotations.Operation;
import lombok.extern.slf4j.Slf4j;
-import org.json.simple.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
-import java.io.*;
-import java.nio.file.Files;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDateTime;
@@ -209,6 +208,15 @@ public ResponseEntity