toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
users-service
/
piperkt.services.users.interfaces.web.api
/
UserApi
User
Api
@
Secured
(
value
=
[
"isAuthenticated()"
]
)
interface
UserApi
Inheritors
UserController
Members
Types
Errors
Link copied to clipboard
sealed
interface
Errors
Functions
get
User
Link copied to clipboard
@
Get
(
value
=
"/users/{username}"
)
abstract
fun
getUser
(
@
PathVariable
username
:
String
)
:
UserDTO
on
User
Not
Found
Link copied to clipboard
@
Error
(
value
=
UserError.UserNotFound::class
)
open
fun
onUserNotFound
(
error
:
UserError.UserNotFound
)
:
UserApi.Errors.UserNotFound
whoami
Link copied to clipboard
@
Get
(
value
=
"/whoami"
)
abstract
fun
whoami
(
principal
:
Principal
)
:
UserDTO