Emtee
01/18/2023, 10:42 AMresource.id
instead of
call.parameters["id"]
CLOVIS
01/18/2023, 11:07 AMresource.someInt
instead of
call.parameters["someInt"]?.run {
call.respondText("Missing parameter 'someInt'", HttpStatusCode.UNPROCESSABLE_ENTITY)
return@route
}.toIntOrNull()?.run {
call.respondText("Parameter 'someInt' should be an integer", HttpStatusCode.UNPROCESSABLE_ENTITY)
return@route
}
CLOVIS
01/18/2023, 11:10 AMEmtee
01/18/2023, 1:24 PM