yogiyo-api
This module is for fetching yogiyo's api server response.
- Restaurants
import Fetchers from "yogiyo-api";
const fetchRestaurantsItemList = ({ latitude, longitude, page, category }) => {
return Fetchers.Restaurants.itemList({
lat: latitude,
lng: longitude,
page,
category: convertCategoryToQueryParamValue(category),
});
};
const fetchRestaurantsSearch = ({ search, page, latitude, longitude }) => {
return Fetchers.Restaurants.search({
search,
page,
lat: latitude,
lng: longitude,
});
};
const fetchRestaurantsMenus = ({ restaurantId }) => {
return Fetchers.Restaurants.menus({
restaurantId,
});
};