create Service

fun <S> createService(    serviceClass: Class<S>,     okhttpClient: OkHttpClient,     baseURl: String): S

Method to create Service with Retrofit without adapter factory

Return

instance of S used for interacting with web service

Parameters

serviceClass

the class service to create

okhttpClient

okHttpClient, with defined header

baseURl

Base Url for endpoint

Sources

Link copied to clipboard