Я отправил и получил строку URL-адреса из ответа json, используя Parcelable во фрагменте, подобном этому
Полученное строковое значение
String profile_url = student.getProfile();
Я хочу использовать это строковое значение в качестве basUrl, чтобы сделать другой запрос с использованием Retrofit, например
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(profile_url)
.addConverterFactory(GsonConverterFactory.create())
.build();
Но получая следующую ошибку
java.lang.RuntimeException: An error occured while executing doInBackground()
......
Caused by: java.lang.IllegalArgumentException: baseUrl must end in /:
Как поставить / в конце baseUrl? Если говорить прямо так
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(profile_url/)
.addConverterFactory(GsonConverterFactory.create())
.build();
не работает, ожидается Экспресс.
Любая помощь. Спасибо
URL-адрес профиля отладки profile_url=http://services.hanselandstudent.com/student.svc/1.1/162137/category/1120/json?banner=0&atid=468f8dc2-9a38-487e-92ae-a194e81809d9
Endpoint
и сделайтеCustom Endpoint Interface
- person M D   schedule 20.04.2016