Subversion Repositories SmartDukaan

Rev

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

Rev 15190 Rev 15254
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, Login
7
    CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, Login,\
-
 
8
    AddContactToRetailer
8
    
9
    
9
import falcon
10
import falcon
10
 
11
 
11
wsgi_app = api = falcon.API()
12
wsgi_app = api = falcon.API()
12
 
13
 
Line 43... Line 44...
43
cricScore = CricScore()
44
cricScore = CricScore()
44
notification = Notification()
45
notification = Notification()
45
dealBrands = DealBrands()
46
dealBrands = DealBrands()
46
dealRank = DealRank()
47
dealRank = DealRank()
47
login = Login()
48
login = Login()
-
 
49
addContactToRetailer= AddContactToRetailer()
48
 
50
 
49
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
51
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
50
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
52
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
51
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
53
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
52
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
54
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
Line 94... Line 96...
94
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
96
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
95
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
97
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
96
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
98
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
97
api.add_route('/deals/getRank/', dealRank)
99
api.add_route('/deals/getRank/', dealRank)
98
api.add_route('/agent/logout/{agentId}/{role}',login)
100
api.add_route('/agent/logout/{agentId}/{role}',login)
99
api.add_route('/agent/login',login)
-
 
100
101
api.add_route('/agent/login',login)
-
 
102
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
-
 
103
101
104