Javier Manzano Javier Manzano - 6 months ago 24
Java Question

How to know which is the generated Url with Retrofit?

I'm working with retrofit and I want to know which is the generated url.

I've tried with setRequestInterceptor and setProfiler.

The last one gives me the url but not query params... so It's not the complete one.

Thanks

Answer

For those who want to know

 RestAdapter restAdapter = new RestAdapter.Builder()
            .setLogLevel(RestAdapter.LogLevel.BASIC)
            .setEndpoint(Metadata.CURRENT_SERVER)
            .setRequestInterceptor(requestInterceptor)
            .build();