public class ApiManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL |
static String |
MOBILE_API_VERSION |
Modifier and Type | Method and Description |
---|---|
static ConsumerApi |
getConsumerApi()
Get the API service interface for the consumer app using the default base url
|
static ConsumerApi |
getConsumerApi(String baseUrl)
Get the API service interface for the consumer app using the provided base url
|
static EnterpriseApi |
getEnterpriseApi()
Get the API service interface for the Enterprise app using the default base url
|
static EnterpriseApi |
getEnterpriseApi(String baseUrl)
Get the API service interface for the Enterprise app using the provided base url
|
public static final String BASE_URL
public static final String MOBILE_API_VERSION
public static ConsumerApi getConsumerApi()
public static ConsumerApi getConsumerApi(String baseUrl)
baseUrl
- the base url for Retrofit. If baseUrl is null or empty, Retrofit will throw exceptions.public static EnterpriseApi getEnterpriseApi()
public static EnterpriseApi getEnterpriseApi(String baseUrl)
baseUrl
- the base url for Retrofit. If baseUrl is null or empty, Retrofit will throw exceptions.