In the documentation for Spring Cloud Function, the examples for Kotlin consist of function that takes a single parameter, e.g.
@Bean
open fun lower(): (String) -> String = { it.lowercase() }
which is called via a URL that has the single parameter on the end as so:
http://localhost/lower/UpperCaseParam
How can more than one parameter be passed ?
Is something like this supported ?
@Bean
open fun upper(): (String,String) -> String = { x,y -> x+y }
or if not multiple parameters, an object ?
@Bean
open fun upper(): (Pair<String,String>) -> String = { it.first+it.second }