JBear2/src/main/kotlin/at/eisibaer/jbear2/endpoint/UserEndpoint.kt

28 lines
881 B
Kotlin
Raw Normal View History

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);
}
@GetMapping("/boards")
fun getBoards(){
TODO();
}
2024-08-16 10:50:57 +02:00
}