Subversion Repositories SmartDukaan

Rev

Rev 16365 | Rev 16544 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16365 Rev 16486
Line 4... Line 4...
4
    SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
4
    SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
5
    DealSheet, DealerPrice, ResetCache, UserDeals, CommonUpdate, ImgSrc, \
5
    DealSheet, DealerPrice, ResetCache, UserDeals, CommonUpdate, ImgSrc, \
6
    NegativeDeals, ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, \
6
    NegativeDeals, ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, \
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, \
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, \
8
    Login, AddContactToRetailer, RetailerActivation, SearchUser, StaticDeals, \
8
    Login, AddContactToRetailer, RetailerActivation, SearchUser, StaticDeals, \
9
    AddAddressToRetailer, DealNotification
9
    AddAddressToRetailer, DealNotification, DealPoints
10
import falcon
10
import falcon
11
    
11
    
12
 
12
 
13
wsgi_app = api = falcon.API()
13
wsgi_app = api = falcon.API()
14
 
14
 
Line 51... Line 51...
51
addContactToRetailer= AddContactToRetailer()
51
addContactToRetailer= AddContactToRetailer()
52
addAddressToRetailer= AddAddressToRetailer()
52
addAddressToRetailer= AddAddressToRetailer()
53
searchUser = SearchUser()
53
searchUser = SearchUser()
54
staticDeals = StaticDeals()
54
staticDeals = StaticDeals()
55
dealNotification = DealNotification()
55
dealNotification = DealNotification()
-
 
56
dealPoints = DealPoints()
56
 
57
 
57
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
58
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
58
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
59
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
59
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
60
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
60
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
61
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
Line 108... Line 109...
108
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
109
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
109
api.add_route('/addAddressToRetailer/{agentId}',addAddressToRetailer)
110
api.add_route('/addAddressToRetailer/{agentId}',addAddressToRetailer)
110
api.add_route('/retailerActivated/{userId}', retailerActivation)
111
api.add_route('/retailerActivated/{userId}', retailerActivation)
111
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
112
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
112
api.add_route('/getStaticDeals/',staticDeals)
113
api.add_route('/getStaticDeals/',staticDeals)
113
api.add_route('/getDealsForNotification/{skuBundleIds}',dealNotification)
-
 
114
114
api.add_route('/getDealsForNotification/{skuBundleIds}',dealNotification)
-
 
115
api.add_route('/dealPoints/addDealPoints', dealPoints)
-
 
116
api.add_route('/dealPoints/getDealPoints', dealPoints)
-
 
117