toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
users-service
/
piperkt.services.users.interfaces.web.api
/
RegisterApi
Register
Api
@
Secured
(
value
=
[
"isAnonymous()"
]
)
interface
RegisterApi
Inheritors
RegisterController
Members
Types
Errors
Link copied to clipboard
sealed
interface
Errors
Register
Request
Link copied to clipboard
data
class
RegisterRequest
(
val
username
:
String
,
val
password
:
String
,
val
email
:
String
?
=
null
,
val
description
:
String
?
=
null
,
val
profilePicture
:
String
?
=
null
)
Functions
on
User
Already
Exists
Link copied to clipboard
@
Error
(
value
=
UserError.UserAlreadyExists::class
)
@
Status
(
value
=
HttpStatus.CONFLICT
)
open
fun
onUserAlreadyExists
(
error
:
UserError.UserAlreadyExists
)
:
RegisterApi.Errors.UserAlreadyExists
register
Link copied to clipboard
@
Post
(
value
=
"/auth/register"
)
abstract
fun
register
(
@
Body
request
:
RegisterApi.RegisterRequest
)
:
UserDTO