My requirement is like this.
- Hit the First API get the response. In the response, I have a field defining the status, if that flag is set, make another API call and merge with the first result.
- If the flag is not set, return the actual response(First Response).
If I use the filter, it will ignore the false items, if the flag is not set, I don't want to ignore the current response.
How can we achieve this using RxJava, FlatMap and Filter ?