Skip to content
Advertisement

How make sequential API calls and merge the result in a mono

I try to make sequential API calls and merge the result in a mono . The first API contains a List of Id for the second API.

JavaScript

My functional WebClient

JavaScript

The ouvrageClient was invoked but I don’t see log

JavaScript

Log

JavaScript

The ouvrageClient was invoked but I don’t see log for the ouvrageClient …. and the global result of my AggregateService is empty

JavaScript

Thanks


Thanks for the answer ! what do you think of this piece of code?

JavaScript

Advertisement

Answer

You could return the tuple2.map to the flatMap operation directly, but make sure you create and return the OperationDetailDto inside the map‘s lambda.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement