i am making call for rest api by using retrofit
Call<ResBean> call = stackOverflowAPI.createUser(m);
call.enqueue(new Callback<ResBean>() {
@Override
public void onResponse(Response<ResBean> response, Retrofit retrofit) {
}
@Override
public void onFailure(Throwable t) {
}
});
now in response if i get one then i will hit new api and then after getting response of 2nd api then i have to hit 1st api . is any way i can save that .
say 1st api - www//one.com and in this if i get one then i will hit 2nd api - www//two.com and once i get response then again i have to hit 1st api which but in 1st api if i get two then i will display result . and this will be for all api, so need to be module of this
any way to do ? caching or somethings ?