| Line 1... |
Line 1... |
| 1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds
|
1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds
|
| 2 |
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
|
2 |
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
|
| 3 |
SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
|
3 |
SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
|
| 4 |
DealSheet, DealerPrice, ResetCache
|
4 |
DealSheet, DealerPrice, ResetCache, UserDeals
|
| 5 |
import falcon
|
5 |
import falcon
|
| 6 |
|
6 |
|
| 7 |
wsgi_app = api = falcon.API()
|
7 |
wsgi_app = api = falcon.API()
|
| 8 |
|
8 |
|
| 9 |
categoryDiscountInfo = CategoryDiscountInfo()
|
9 |
categoryDiscountInfo = CategoryDiscountInfo()
|
| Line 19... |
Line 19... |
| 19 |
track = Track()
|
19 |
track = Track()
|
| 20 |
refunds = Refunds()
|
20 |
refunds = Refunds()
|
| 21 |
pendingRefunds = PendingRefunds()
|
21 |
pendingRefunds = PendingRefunds()
|
| 22 |
dealerPrice = DealerPrice()
|
22 |
dealerPrice = DealerPrice()
|
| 23 |
resetCache = ResetCache()
|
23 |
resetCache = ResetCache()
|
| - |
|
24 |
userDeals = UserDeals()
|
| 24 |
|
25 |
|
| 25 |
|
26 |
|
| 26 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
27 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
| 27 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
28 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
| 28 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
29 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
| Line 45... |
Line 46... |
| 45 |
api.add_route('/discountInfo/updateCategoryDiscount/{_id}', categoryDiscountInfo)
|
46 |
api.add_route('/discountInfo/updateCategoryDiscount/{_id}', categoryDiscountInfo)
|
| 46 |
api.add_route('/discountInfo/updateSkuDiscount/{_id}', skuDiscountInfo)
|
47 |
api.add_route('/discountInfo/updateSkuDiscount/{_id}', skuDiscountInfo)
|
| 47 |
api.add_route('/dealerPrices/addDealerPrice', dealerPrice)
|
48 |
api.add_route('/dealerPrices/addDealerPrice', dealerPrice)
|
| 48 |
api.add_route('/dealerPrices/getAllDealerPrice', dealerPrice)
|
49 |
api.add_route('/dealerPrices/getAllDealerPrice', dealerPrice)
|
| 49 |
api.add_route('/dealerPrices/updateDealerPrice/{_id}', dealerPrice)
|
50 |
api.add_route('/dealerPrices/updateDealerPrice/{_id}', dealerPrice)
|
| 50 |
api.add_route('/resetCache/{userId}',resetCache)
|
- |
|
| 51 |
|
51 |
api.add_route('/resetCache/{userId}',resetCache)
|
| - |
|
52 |
api.add_route('/Catalog/generateDealSheetForUser/{userId}',userDeals)
|
| - |
|
53 |
|
| 52 |
|
54 |
|