| Line 1... |
Line 1... |
| 1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, PendingCashBacks, Orders, \
|
1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, \
|
| 2 |
Transactions, RawHtml
|
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, NegativeDeals, \
|
5 |
DealSheet, DealerPrice, ResetCache, UserDeals, CommonUpdate, ImgSrc, \
|
| 6 |
ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, CommonSearch, CricScore, Notification, \
|
6 |
NegativeDeals, ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, \
|
| 7 |
DealBrands
|
7 |
CommonSearch, CricScore, Notification, DealBrands, RetailerDetail
|
| 8 |
import falcon
|
8 |
import falcon
|
| 9 |
|
9 |
|
| 10 |
wsgi_app = api = falcon.API()
|
10 |
wsgi_app = api = falcon.API()
|
| 11 |
|
11 |
|
| 12 |
categoryDiscountInfo = CategoryDiscountInfo()
|
12 |
categoryDiscountInfo = CategoryDiscountInfo()
|
| 13 |
skuSchemeDetails = SkuSchemeDetails()
|
13 |
skuSchemeDetails = SkuSchemeDetails()
|
| 14 |
skuDiscountInfo = SkuDiscountInfo()
|
14 |
skuDiscountInfo = SkuDiscountInfo()
|
| 15 |
exceptionalNlc = ExceptionalNlc()
|
15 |
exceptionalNlc = ExceptionalNlc()
|
| 16 |
storeorder = StoreOrder()
|
16 |
storeorder = StoreOrder()
|
| - |
|
17 |
reatiler = RetailerDetail()
|
| 17 |
deals = Deals()
|
18 |
deals = Deals()
|
| 18 |
masterData = MasterData()
|
19 |
masterData = MasterData()
|
| 19 |
liveData = LiveData()
|
20 |
liveData = LiveData()
|
| 20 |
cashBack = CashBack()
|
21 |
cashBack = CashBack()
|
| 21 |
imgSrc = ImgSrc()
|
22 |
imgSrc = ImgSrc()
|
| 22 |
dealSheet = DealSheet()
|
23 |
dealSheet = DealSheet()
|
| 23 |
track = Track()
|
24 |
track = Track()
|
| 24 |
refunds = Refunds()
|
25 |
refunds = Refunds()
|
| 25 |
transactions = Transactions()
|
26 |
transactions = Transactions()
|
| - |
|
27 |
snapShot = SnapShot()
|
| 26 |
rawHtml = RawHtml()
|
28 |
rawHtml = RawHtml()
|
| 27 |
pendingRefunds = PendingRefunds()
|
29 |
pendingRefunds = PendingRefunds()
|
| 28 |
pendingCashbacks = PendingCashBacks()
|
30 |
pendingCashbacks = PendingCashBacks()
|
| 29 |
dealerPrice = DealerPrice()
|
31 |
dealerPrice = DealerPrice()
|
| 30 |
resetCache = ResetCache()
|
32 |
resetCache = ResetCache()
|
| Line 85... |
Line 87... |
| 85 |
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
|
87 |
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
|
| 86 |
api.add_route('/Catalog/searchProducts/',commonSearch)
|
88 |
api.add_route('/Catalog/searchProducts/',commonSearch)
|
| 87 |
api.add_route('/liveCricketScore/',cricScore)
|
89 |
api.add_route('/liveCricketScore/',cricScore)
|
| 88 |
api.add_route('/Catalog/notification/', notification)
|
90 |
api.add_route('/Catalog/notification/', notification)
|
| 89 |
api.add_route('/deals/brands/', dealBrands)
|
91 |
api.add_route('/deals/brands/', dealBrands)
|
| - |
|
92 |
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
|
| - |
|
93 |
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
|
| 90 |
|
94 |
|