Subversion Repositories SmartDukaan

Rev

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

Rev 15160 Rev 15189
Line 2... Line 2...
2
    PendingCashBacks, Orders, Transactions, RawHtml, SnapShot
2
    PendingCashBacks, Orders, Transactions, RawHtml, SnapShot
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
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, Login
8
    
8
    
9
import falcon
9
import falcon
10
 
10
 
11
wsgi_app = api = falcon.API()
11
wsgi_app = api = falcon.API()
12
 
12
 
Line 42... Line 42...
42
commonSearch = CommonSearch()
42
commonSearch = CommonSearch()
43
cricScore = CricScore()
43
cricScore = CricScore()
44
notification = Notification()
44
notification = Notification()
45
dealBrands = DealBrands()
45
dealBrands = DealBrands()
46
dealRank = DealRank()
46
dealRank = DealRank()
47
 
47
login = Login()
-
 
48
saholicLogs = SaholicLogs()
48
 
49
 
49
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
50
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
50
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
51
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
51
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
52
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
52
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
53
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
Line 93... Line 94...
93
api.add_route('/deals/brands/', dealBrands)
94
api.add_route('/deals/brands/', dealBrands)
94
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
95
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
95
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
96
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
96
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
97
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
97
api.add_route('/deals/getRank/', dealRank)
98
api.add_route('/deals/getRank/', dealRank)
-
 
99
api.add_route('/agent/logout/{agentId}/{role}',login)
-
 
100
api.add_route('/agent/login',login)
98
101