From 012ec04ae2f527ca8a2990b1ddfc9e09b6c808ea Mon Sep 17 00:00:00 2001 From: ollioddi Date: Fri, 3 Nov 2023 12:35:01 +0100 Subject: [PATCH] Initial endpoint --- .../controller/IntegrationController.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 backend/src/main/java/com/aau/p3/performancedashboard/controller/IntegrationController.java diff --git a/backend/src/main/java/com/aau/p3/performancedashboard/controller/IntegrationController.java b/backend/src/main/java/com/aau/p3/performancedashboard/controller/IntegrationController.java new file mode 100644 index 0000000..8626976 --- /dev/null +++ b/backend/src/main/java/com/aau/p3/performancedashboard/controller/IntegrationController.java @@ -0,0 +1,28 @@ +package com.aau.p3.performancedashboard.controller; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.CrossOrigin; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/api/v1/integrations") +public class IntegrationController { + @GetMapping("/") + public String getIntegrations() { + return "bob"; + } +}