For accessing data from api ,by retrofit. in android ,not able to link with service class apiInterfac which i have created
TO access api by Retrofit , Retrofit builder object i am able to use retrofitbuilder object , connect url , build butnot able to attach my service class apiInterface which i have created .
private fun getmydata() {
lateinit var myAdapter: RecyclerAdapter
val retrofitBuilder = Retrofit.Builder()
.addConverterFactory(GsonConverterFactory.create())
.baseUrl(myuri)
.build();
var api : apiInterface =...