diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..f7dc58b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,45 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.0.4
+
+
+
+ com.javatest
+ javatest
+ 0.0.1-SNAPSHOT
+ jar
+
+ javaTest
+
+
+ 17
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-data-mongodb
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
+
diff --git a/src/main/java/com/javatest/Application.java b/src/main/java/com/javatest/Application.java
new file mode 100644
index 0000000..6e323bb
--- /dev/null
+++ b/src/main/java/com/javatest/Application.java
@@ -0,0 +1,11 @@
+package com.javatest;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class Application {
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+}
diff --git a/src/main/java/com/javatest/api/ProductRestController.java b/src/main/java/com/javatest/api/ProductRestController.java
new file mode 100644
index 0000000..8928e68
--- /dev/null
+++ b/src/main/java/com/javatest/api/ProductRestController.java
@@ -0,0 +1,56 @@
+package com.javatest.api;
+
+
+import com.javatest.document.Product;
+import com.javatest.service.ProductService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Optional;
+
+@RestController
+@RequestMapping(value = "/")
+public class ProductRestController {
+
+ private final Logger log = LoggerFactory.getLogger(getClass());
+
+ private final ProductService service;
+
+ @Autowired
+ public ProductRestController(ProductService service) {
+ this.service = service;
+ }
+
+ @RequestMapping(value = "/products", method = RequestMethod.GET)
+ public List getAll() {
+ log.info("Getting all products.");
+ return service.getAll();
+ }
+
+ @RequestMapping(value = "/products/{id}", method = RequestMethod.GET)
+ public ResponseEntity