Subversion Repositories SmartDukaan

Rev

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

Rev 15139 Rev 15160
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
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank
-
 
8
    
8
import falcon
9
import falcon
9
 
10
 
10
wsgi_app = api = falcon.API()
11
wsgi_app = api = falcon.API()
11
 
12
 
12
categoryDiscountInfo = CategoryDiscountInfo()
13
categoryDiscountInfo = CategoryDiscountInfo()
Line 40... Line 41...
40
featuredDeals = FeaturedDeals()
41
featuredDeals = FeaturedDeals()
41
commonSearch = CommonSearch()
42
commonSearch = CommonSearch()
42
cricScore = CricScore()
43
cricScore = CricScore()
43
notification = Notification()
44
notification = Notification()
44
dealBrands = DealBrands()
45
dealBrands = DealBrands()
-
 
46
dealRank = DealRank()
45
 
47
 
46
 
48
 
47
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
49
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
48
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
50
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
49
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
51
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
Line 89... Line 91...
89
api.add_route('/liveCricketScore/',cricScore)
91
api.add_route('/liveCricketScore/',cricScore)
90
api.add_route('/Catalog/notification/', notification)
92
api.add_route('/Catalog/notification/', notification)
91
api.add_route('/deals/brands/', dealBrands)
93
api.add_route('/deals/brands/', dealBrands)
92
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
94
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
93
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
95
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
94
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
-
 
95
96
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
-
 
97
api.add_route('/deals/getRank/', dealRank)
-
 
98