The content

fun getService() : CoinService{
retrofit = Retrofit.Builder()
.baseUrl("")
.addConverterFactory(ScalarsConverterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.client(createOkHttpClient())
.build()
return retrofit.create(CoinService::class.java)
}

here is the sample code

--

--