package at.eisibaer.jbear2.endpoint import org.slf4j.Logger import org.slf4j.LoggerFactory import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestParam import org.springframework.web.bind.annotation.RestController @RestController @RequestMapping("/api/user") class UserEndpoint { val log: Logger = LoggerFactory.getLogger(UserEndpoint::class.java); @GetMapping("/test/{pathVar}") fun testEndpoint(@PathVariable pathVar: String, @RequestParam param1: String): ResponseEntity{ log.info("test Endpoint!"); return ResponseEntity.ok(param1); } @GetMapping("/boards") fun getBoards(){ TODO(); } }