From 7b88efb42544a0fcb8f0f394412a3a6dea3f2acb Mon Sep 17 00:00:00 2001
From: Paul Reichmuth
Date: Wed, 1 Oct 2025 10:56:19 +0200
Subject: [PATCH] first small testing prototype
---
pom.xml | 17 +++++++-------
.../TimekeepBackendApplication.java | 5 ++--
.../TimekeepRestController.java | 23 +++++++++++++++++++
3 files changed, 35 insertions(+), 10 deletions(-)
create mode 100644 src/main/java/de/pnreichmuth/timekeep_backend/TimekeepRestController.java
diff --git a/pom.xml b/pom.xml
index a566cfb..6fbc509 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,6 +8,7 @@
4.0.0-M3
+
de.pnreichmuth
timekeep-backend
0.0.1-SNAPSHOT
@@ -30,14 +31,14 @@
25
-
- org.springframework.boot
- spring-boot-starter-data-jdbc
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
+
+
+
+
+
+
+
+
org.springframework.boot
spring-boot-starter-websocket
diff --git a/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepBackendApplication.java b/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepBackendApplication.java
index fb9e97a..91f5ef5 100644
--- a/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepBackendApplication.java
+++ b/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepBackendApplication.java
@@ -2,12 +2,13 @@ package de.pnreichmuth.timekeep_backend;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
public class TimekeepBackendApplication {
- static void main(String[] args) {
+ public static void main(String[] args) {
SpringApplication.run(TimekeepBackendApplication.class, args);
}
-
}
diff --git a/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepRestController.java b/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepRestController.java
new file mode 100644
index 0000000..afadf82
--- /dev/null
+++ b/src/main/java/de/pnreichmuth/timekeep_backend/TimekeepRestController.java
@@ -0,0 +1,23 @@
+package de.pnreichmuth.timekeep_backend;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Date;
+
+@RestController
+public class TimekeepRestController {
+
+ public TimekeepRestController() {
+
+ }
+
+ @GetMapping("/time/test")
+ public Testclass timeEndpoint(){
+ return new Testclass("TEST",1);
+ }
+ @GetMapping("/time")
+ public Date getTime(){
+ return new Date();
+ }
+}