first commit
This commit is contained in:
163
lib/constants/api_constants.dart
Normal file
163
lib/constants/api_constants.dart
Normal file
@@ -0,0 +1,163 @@
|
||||
class ApiConstants {
|
||||
|
||||
///Flavours Route
|
||||
static String mainDev = "dev";
|
||||
static String mainRoute = "live";
|
||||
|
||||
///Base Url
|
||||
static String baseUrl = 'https://jupiter.nearle.app';
|
||||
static String baseUrl1 = 'https://fiesta.nearle.app';
|
||||
|
||||
|
||||
static String workolikBase = "https://api.workolik.com/api/rest";
|
||||
|
||||
|
||||
///Authentication
|
||||
static String login='';
|
||||
static String createCustomer='';
|
||||
|
||||
///Products
|
||||
|
||||
|
||||
///Get Product Category
|
||||
static String getProductCategory='';
|
||||
static String getAllProductByCategory='';
|
||||
static String getProductsBySubcategory='';
|
||||
static String getProductVarient = '';
|
||||
|
||||
///Customers
|
||||
static String getCustomerInfo = '';
|
||||
static String customerUpdate = '';
|
||||
// static String getCustomerLocations = '';
|
||||
static String createCustomerLocations = '';
|
||||
|
||||
/// tenants
|
||||
static String tenantCustomers = '';
|
||||
static String orderedtenantCustomers = '';
|
||||
|
||||
///Admin
|
||||
static String getAppLocationDetails='';
|
||||
static String notifyAdmin='' ;
|
||||
|
||||
/// Tenants
|
||||
static String createCustomerTenant ='';
|
||||
|
||||
///Orders
|
||||
static String createOrder = '';
|
||||
static String getOrder = '';
|
||||
|
||||
/// Locations
|
||||
static String getServiceLocations = '';
|
||||
|
||||
static String getSlotTiming = '';
|
||||
|
||||
/// Help and support
|
||||
static String createSupportAndSupport ='';
|
||||
|
||||
static String supportTypes = '';
|
||||
|
||||
static String getRequestedSupport = '';
|
||||
|
||||
|
||||
|
||||
/// Customer locations
|
||||
|
||||
static String getCustomerLocations = "$workolikBase/getcustomerlocations";
|
||||
|
||||
/// getproducts
|
||||
|
||||
static String getCustomerOrders = "$workolikBase/getcustomerorders";
|
||||
|
||||
|
||||
/// fetchprofile
|
||||
|
||||
static String fetchProfile = "$workolikBase/getbyid?";
|
||||
|
||||
static String updateCustomer = "$baseUrl1/live/api/v1/mob/customers/update";
|
||||
|
||||
|
||||
|
||||
/// Appcategorys
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
///Authentication
|
||||
// static String loginDev="$baseUrl/$mainDev/api/v1";
|
||||
// static String loginLive="$baseUrl/$mainRoute/api/v1";
|
||||
|
||||
static String loginDev = "$baseUrl1/$mainDev/api/v1/mob/customers/login";
|
||||
static String loginLive = "$baseUrl1/$mainRoute/api/v1/mob/customers/login";
|
||||
|
||||
|
||||
///Create Customer
|
||||
static String createCustomerLive="https://fiesta.nearle.app/live/api/v1/mob/customers/create";
|
||||
|
||||
/// Products Varient
|
||||
static String getProductVarientLive = "$baseUrl/$mainRoute/api/v1/products/getproductbyvariant";
|
||||
|
||||
///Get Product Category
|
||||
static String getProductCategoryDev="$baseUrl/$mainDev/api/v1/products/getproductsubcategories";
|
||||
static String getProductCategoryLive="$baseUrl/$mainRoute/api/v1/products/getproductsubcategories";
|
||||
|
||||
///Get All Product By Category
|
||||
static String getAllProductByCategoryDev="$baseUrl/$mainDev/api/v1/products/getallproducts";
|
||||
static String getAllProductByCategoryLive="$baseUrl/$mainRoute/api/v1/products/getallproducts";
|
||||
|
||||
///GetProducts By Subcategory
|
||||
static String getProductsBySubcategoryDev="$baseUrl/$mainDev/api/v1/products/getproductsbysubcategory";
|
||||
static String getProductsBySubcategoryLive="$baseUrl/$mainRoute/api/v1/products/getproductsbysubcategory";
|
||||
|
||||
///Customers
|
||||
static String getCustomerInfoDev = "$baseUrl/$mainDev/api/v1/customers/getbyid";
|
||||
static String getCustomerInfoLive = "$baseUrl/$mainRoute/api/v1/customers/getbyid";
|
||||
|
||||
static String customerUpdateDev = '$baseUrl/$mainDev/api/v1/customers/update';
|
||||
static String customerUpdateLive = '$baseUrl/$mainRoute/api/v1/customers/update';
|
||||
|
||||
///Customer Locations
|
||||
// static String getCustomerLocationsDev = "$baseUrl/$mainDev/api/v1/customers/getcustomerlocation";
|
||||
// static String getCustomerLocationsLive = "$baseUrl/$mainRoute/api/v1/customers/getcustomerlocation";
|
||||
|
||||
static String createCustomerLocationsDev = "$baseUrl/$mainRoute/api/v1/customers/createlocations";
|
||||
static String createCustomerLocationsLive = "$baseUrl/$mainRoute/api/v1/customers/createlocations";
|
||||
|
||||
|
||||
///Orders
|
||||
static String createOrderDev = "$baseUrl/$mainDev/api/v1/mob/orders/createorder";
|
||||
static String createOrderLive = "$baseUrl/$mainRoute/api/v1/mob/orders/createorder";
|
||||
|
||||
static String getOrderDev = "$baseUrl/$mainDev/api/v3/orders/getcustomerorders";
|
||||
static String getOrderLive = "$baseUrl/$mainRoute/api/v3/orders/getcustomerorders";
|
||||
|
||||
|
||||
///Admin
|
||||
static String getAppLocationDetailsDev="$baseUrl/$mainDev/api/v1/utils/getapplocationconfig";
|
||||
static String getAppLocationDetailsLive="$baseUrl/$mainRoute/api/v1/utils/getapplocationconfig";
|
||||
|
||||
|
||||
static String notifyAdminLive="https://jupiter.nearle.app/live/api/v1/utils/notifytenant";
|
||||
|
||||
|
||||
static String serviceLocationLive = '${baseUrl}/$mainRoute/api/v1/utils/getapplocations';
|
||||
|
||||
static String getSlotTimingLive = "$baseUrl/$mainRoute/api/v1/tenants/gettenantslots";
|
||||
|
||||
static String createTenantLive = "$baseUrl/$mainRoute/api/v1/tenants/createtenantcustomer";
|
||||
|
||||
static String tenantCustomerLive = "$baseUrl1/$mainRoute/api/v1/mob/tenants/getcustomertenants";
|
||||
static String orderedtenantCustomerLive = "$baseUrl1/$mainRoute/api/v1/mob/orders/getcustomerorders";
|
||||
|
||||
static String createSupportAndSupportLive = "$baseUrl/$mainRoute/api/v1/customers/createcustomerrequest";
|
||||
|
||||
static String supportTypesLive = "$baseUrl/$mainRoute/api/v1/utils/getapptypes/?tag=customersupport";
|
||||
|
||||
static String getRequestedSupportLive = "$baseUrl/$mainRoute/api/v1/customers/getcustomerrequests";
|
||||
|
||||
//?customerid=1001&pageno=1&pagesize=1
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user