Subversion Repositories SmartDukaan

Rev

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

Rev 15677 Rev 16365
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
9
    AddAddressToRetailer, DealNotification
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 50... Line 50...
50
login = Login()
50
login = Login()
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
 
56
 
56
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
57
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
57
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
58
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
58
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
59
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
59
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
60
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
Line 106... Line 107...
106
api.add_route('/agent/login',login)
107
api.add_route('/agent/login',login)
107
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
108
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
108
api.add_route('/addAddressToRetailer/{agentId}',addAddressToRetailer)
109
api.add_route('/addAddressToRetailer/{agentId}',addAddressToRetailer)
109
api.add_route('/retailerActivated/{userId}', retailerActivation)
110
api.add_route('/retailerActivated/{userId}', retailerActivation)
110
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
111
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
111
api.add_route('/getStaticDeals/',staticDeals)
-
 
112
112
api.add_route('/getStaticDeals/',staticDeals)
-
 
113
api.add_route('/getDealsForNotification/{skuBundleIds}',dealNotification)
-
 
114
113
115