I am new to RxJava.
We are using Retrofit2 + RxJava2 for calling APIs.
I have the following scenario -
1. Call Cart API
2. If Cart API fails I need to call Login API
3. On Success of Login API I need to call Cart API again
Call {API} -> {API} fails -> call Login API -> on success of Login API -> call {API}.
Like this way, if any API fails I need to call Login API and then call the failed API.
Whats the best way handle this.