commit 695371b02447a6e92d1b5a8aba3cd605a5d3d444 Author: Sylvain Monmignon Date: Tue Sep 1 12:00:35 2026 +0200 initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3b41682 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +/mvnw text eol=lf +*.cmd text eol=crlf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37e6a58 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +HELP.md +target/ +.mvn/wrapper/maven-wrapper.jar +.mvn +!**/src/main/**/target/ +!**/src/test/**/target/ +mvnw +mvnw.cmd +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7053818 --- /dev/null +++ b/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 4.1.1 + + + myapi + api + 0.0.1-SNAPSHOT + + + + + + + + + + + + + + + + + 26 + + + + org.springframework.boot + spring-boot-starter + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/main/java/myapi/api/ApiApplication.java b/src/main/java/myapi/api/ApiApplication.java new file mode 100644 index 0000000..082a9a9 --- /dev/null +++ b/src/main/java/myapi/api/ApiApplication.java @@ -0,0 +1,13 @@ +package myapi.api; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class ApiApplication { + + public static void main(String[] args) { + SpringApplication.run(ApiApplication.class, args); + } + +} diff --git a/src/main/java/myapi/api/Model/Task.java b/src/main/java/myapi/api/Model/Task.java new file mode 100644 index 0000000..e89a0b8 --- /dev/null +++ b/src/main/java/myapi/api/Model/Task.java @@ -0,0 +1,8 @@ +package myapi.api.Model; + +public class Task { + + private int id_task; + private String name_task; + +} \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..bbe3a4c --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=api diff --git a/src/test/java/myapi/api/ApiApplicationTests.java b/src/test/java/myapi/api/ApiApplicationTests.java new file mode 100644 index 0000000..37cbabe --- /dev/null +++ b/src/test/java/myapi/api/ApiApplicationTests.java @@ -0,0 +1,13 @@ +package myapi.api; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class ApiApplicationTests { + + @Test + void contextLoads() { + } + +}