I would like to access multiple body parameters of different types to use in my POST route in my API, but I don't know how to access the body parameters in Javalin. I haven't found any information concerning body parameters or best POST practices in Javalin in the documentation. The closest thing I can find is this:
ctx.body() // get body as string (consumes underlying request body if not cached)
ctx.bodyAsBytes() // get body as bytes (consumes underlying request body if not cached)
ctx.bodyAsClass(class) // get body as class (consumes underlying request body if not cached)
ctx.bodyValidator(class) // get typed validator for body (consumes underlying body request if not cached)
Could somebody please point me in the right direction? Does Javalin even support body parameters?