2024-08-16 10:50:57 +02:00
|
|
|
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<String>{
|
|
|
|
|
log.info("test Endpoint!");
|
|
|
|
|
return ResponseEntity.ok(param1);
|
|
|
|
|
}
|
2024-08-18 16:26:57 +02:00
|
|
|
|
|
|
|
|
@GetMapping("/boards")
|
|
|
|
|
fun getBoards(){
|
|
|
|
|
TODO();
|
|
|
|
|
}
|
2024-08-16 10:50:57 +02:00
|
|
|
}
|