Subversion Repositories SmartDukaan

Rev

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

Rev 15275 Rev 15284
Line 3... Line 3...
3
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
3
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
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, Login,\
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, Login,\
8
    AddContactToRetailer, RetailerActivation
8
    AddContactToRetailer, RetailerActivation, SearchUser
9
    
9
    
10
import falcon
10
import falcon
11
 
11
 
12
wsgi_app = api = falcon.API()
12
wsgi_app = api = falcon.API()
13
 
13
 
Line 45... Line 45...
45
notification = Notification()
45
notification = Notification()
46
dealBrands = DealBrands()
46
dealBrands = DealBrands()
47
dealRank = DealRank()
47
dealRank = DealRank()
48
login = Login()
48
login = Login()
49
addContactToRetailer= AddContactToRetailer()
49
addContactToRetailer= AddContactToRetailer()
-
 
50
searchUser = SearchUser()
50
 
51
 
51
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
52
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
52
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
53
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
53
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
54
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
54
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
55
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
Line 98... Line 99...
98
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
99
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
99
api.add_route('/deals/getRank/', dealRank)
100
api.add_route('/deals/getRank/', dealRank)
100
api.add_route('/agent/logout/{agentId}/{role}',login)
101
api.add_route('/agent/logout/{agentId}/{role}',login)
101
api.add_route('/agent/login',login)
102
api.add_route('/agent/login',login)
102
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
103
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
103
api.add_route('/retailerActivated/{userId}', RetailerActivation)
-
 
104
104
api.add_route('/retailerActivated/{userId}', RetailerActivation)
-
 
105
api.add_route('/searchRetailer/{agentId}/{searchType}', SearchUser)
-
 
106
105
107