// Trailing slash is needed public static final String BASE_URL = "http://api.myservice.com/"; Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build();