Set the base URL for Retrofit to http://localhost:8000:
object RetrofitManager {
private val retrofit: Retrofit = Retrofit.Builder()
/* your code here */
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().create()))
.build()
}