How to setup Retrofit with no baseUrl

From source (New URL resolving concept) you can simply specify whole path in post request.

Moreover we also can declare a full URL in @Post in Retrofit 2.0:

public interface APIService {

    @POST("http://api.nuuneoi.com/special/user/list")
    Call<Users> loadSpecialUsers();

}

Base URL will be ignored for this case.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)