cypher121
02/25/2021, 3:00 PM@Location("/user/{id}") //GET and DELETE
data class UserById(val id: Int) {
@Location("/") //PUT
data class Update(
val parent: UserById,
val update: CreateUser
)
}
@Location("/user") //POST
data class CreateUser(
val name: String,
val email: String,
val password: String
)