I have 3 reactive rest client functions getOne(): Uni<String>, getTwo(reponseFromOne): Uni<List<Two>>, getThree(responsesFromTwo): Uni<List<Three>>
I want to chain them so the result from getOne is passed as argument to getTwo and results from getTwo are passed as arguments to getThree. So that I can construct objects after all calls are passed
Something like .. the following pseudo code..
val someObjects: Uni<List<SomeObject> =
getOne().onItem().transformToUni { input -> getTwo(input) }
.onItem().transformToUni { input2 -> getThree(input2) }
.map {
SomeObject(getTwo.something, getThree.something)
}