{"size": 1697, "ext": "js", "max_stars_repo_path": "customer-vue/src/api/store.js", "max_stars_repo_name": "Development-team-1/just-pickup", "max_stars_repo_stars_event_min_datetime": "2022-01-21T05:25:15.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-18T10:57:46.000Z", "max_issues_repo_path": "customer-vue/src/api/store.js", "max_issues_repo_name": "Development-team-1/just-pickup", "max_issues_repo_issues_event_min_datetime": "2022-01-26T05:27:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T07:22:39.000Z", "max_forks_repo_path": "customer-vue/src/api/store.js", "max_forks_repo_name": "Development-team-1/just-pickup", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 12, "max_issues_count": 40, "max_forks_count": null, "avg_line_length": 32.6346153846, "max_line_length": 126, "alphanum_fraction": 0.6753093695}
import axios from "axios";

export default {
  requestNearbyStore(latitude, longitude, storeName, page, size) {
    const options = {
      params: {
        latitude: latitude,
        longitude: longitude,
        storeName: storeName,
        page: page,
        size: size
      }
    }
    return axios.get(process.env.VUE_APP_STORE_API_URL + '/store/search', options);
  },
  getItemById(itemId){
      return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/item/'+itemId)
  },
  getFavoriteStore(latitude, longitude,){
      const options = {
          params: {
              latitude: latitude,
              longitude: longitude,
          }
      }
    return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/api/customer/store/favorite',options)
  },
  getCategoryList(){
      return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL+'/store-service/category/');
  },
  fetchItem(itemId){
      return axios.get(process.env.VUE_APP_STORE_API_URL+'/item/'+itemId)
  },  
  requestCategoriesWithItem(storeId) {
    const options = {
      params: {
        "storeId": storeId
      }
    }
    return axios.get(process.env.VUE_APP_STORE_API_URL + "/categories", options);
  },
  requestStore(storeId) {
    return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL + "/store-service/store/" + storeId);
  },
  getFavoriteStoreByStoreId(storeId) {
    return axios.get(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL + "/store-service/api/customer/favoriteStore/" + storeId);
  },
  markStar(storeId) {
    return axios.patch(process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL + "/store-service/api/customer/favoriteStore/" + storeId);
  }

}