Entity
data class Person(@Id val id: Long, val firstName, val lastName)
Repo
interface PersonRepo: JpaRepository<Persion, Long>
Controller
@GetMapping
fun getListPerson(): List<Person>
Call endpoint,
** fn = firstName
Можно ли называть его псевдонимом?
localhost:8080?sort=fn,desc