This is a project that uses the ShopFinder Library API module
Include in your root build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the library to your app module Build.gradle
file
implementation 'com.github.gitzblitz:Shopper:1.0.1'
Access the public methods of the API from the WebServiceFacade.kt
. Instantiate an object of the facade
val service by lazy { WebServiceFacade()}
These are the endpoint to fetch the required data
//return list of cities
getCities()
// return list of malls in particular city
getMallsByCity(cityId: String)
//get an individual mall given the cityId and mallId
getMall(cityId: String, mallId: String)
//get a city
getCity(cityId: String)
//get a shop
getShop(cityId: String, mallId: String, shopId: String)
service.getAllCities() // returns a list of cities
- Retrofit
- RxJava
- OkHttp