| 14427 |
amit.gupta |
1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, Orders, \
|
|
|
2 |
Transactions, RawHtml
|
| 13582 |
amit.gupta |
3 |
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
|
| 13927 |
amit.gupta |
4 |
SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
|
| 14481 |
kshitij.so |
5 |
DealSheet, DealerPrice, ResetCache, UserDeals, CommonUpdate, ImgSrc, NegativeDeals, \
|
| 14495 |
kshitij.so |
6 |
ManualDeals, CommonDelete, SearchProduct, FeaturedDeals
|
| 13804 |
amit.gupta |
7 |
import falcon
|
| 13572 |
kshitij.so |
8 |
|
|
|
9 |
wsgi_app = api = falcon.API()
|
|
|
10 |
|
|
|
11 |
categoryDiscountInfo = CategoryDiscountInfo()
|
|
|
12 |
skuSchemeDetails = SkuSchemeDetails()
|
|
|
13 |
skuDiscountInfo = SkuDiscountInfo()
|
|
|
14 |
exceptionalNlc = ExceptionalNlc()
|
| 13582 |
amit.gupta |
15 |
storeorder = StoreOrder()
|
| 13773 |
kshitij.so |
16 |
deals = Deals()
|
| 13786 |
kshitij.so |
17 |
masterData = MasterData()
|
| 13826 |
kshitij.so |
18 |
liveData = LiveData()
|
| 13835 |
kshitij.so |
19 |
cashBack = CashBack()
|
| 14398 |
amit.gupta |
20 |
imgSrc = ImgSrc()
|
| 13891 |
kshitij.so |
21 |
dealSheet = DealSheet()
|
| 13870 |
amit.gupta |
22 |
track = Track()
|
| 13927 |
amit.gupta |
23 |
refunds = Refunds()
|
| 14427 |
amit.gupta |
24 |
transactions = Transactions()
|
|
|
25 |
rawHtml = RawHtml()
|
| 13927 |
amit.gupta |
26 |
pendingRefunds = PendingRefunds()
|
| 13970 |
kshitij.so |
27 |
dealerPrice = DealerPrice()
|
| 14041 |
kshitij.so |
28 |
resetCache = ResetCache()
|
| 14045 |
kshitij.so |
29 |
userDeals = UserDeals()
|
| 14077 |
kshitij.so |
30 |
commonUpdate = CommonUpdate()
|
| 14353 |
amit.gupta |
31 |
orders = Orders()
|
| 14481 |
kshitij.so |
32 |
negativeDeals = NegativeDeals()
|
|
|
33 |
manualDeals = ManualDeals()
|
|
|
34 |
commonDelete = CommonDelete()
|
| 14482 |
kshitij.so |
35 |
searchProduct = SearchProduct()
|
| 14495 |
kshitij.so |
36 |
featuredDeals = FeaturedDeals
|
| 13572 |
kshitij.so |
37 |
|
|
|
38 |
|
| 13628 |
kshitij.so |
39 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
|
|
40 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
|
|
41 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
|
|
42 |
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
|
|
|
43 |
api.add_route('/discountInfo/addExceptionalSkuDiscount',skuDiscountInfo)
|
|
|
44 |
api.add_route('/discountInfo/getAllExceptionalSkuDiscount',skuDiscountInfo)
|
|
|
45 |
api.add_route('/exceptionalNlc/addExceptionalNlc',exceptionalNlc)
|
|
|
46 |
api.add_route('/exceptionalNlc/getExceptionalNlc',exceptionalNlc)
|
| 13582 |
amit.gupta |
47 |
api.add_route('/storeorder', storeorder)
|
| 14353 |
amit.gupta |
48 |
api.add_route('/orders', orders)
|
| 13603 |
amit.gupta |
49 |
api.add_route('/storeorder/{id}', storeorder)
|
|
|
50 |
api.add_route('/storeorder/user/{userId}', storeorder)
|
| 13780 |
kshitij.so |
51 |
api.add_route('/deals/{userId}',deals)
|
| 13788 |
kshitij.so |
52 |
api.add_route('/masterData/getSkuById/{skuId}', masterData)
|
| 13835 |
kshitij.so |
53 |
api.add_route('/Catalog/fetchLivePrices/', liveData)
|
|
|
54 |
api.add_route('/Catalog/cashBack/', cashBack)
|
| 14398 |
amit.gupta |
55 |
api.add_route('/Catalog/imgSrc/', imgSrc)
|
| 13939 |
amit.gupta |
56 |
api.add_route('/track/user/{userId}', track)
|
| 13927 |
amit.gupta |
57 |
api.add_route('/refund/user/{userId}', refunds)
|
| 13967 |
kshitij.so |
58 |
api.add_route('/pending-refunds/user/{userId}', pendingRefunds)
|
| 13968 |
kshitij.so |
59 |
api.add_route('/Catalog/generateDealSheet/', dealSheet)
|
| 13970 |
kshitij.so |
60 |
api.add_route('/discountInfo/updateCategoryDiscount/{_id}', categoryDiscountInfo)
|
|
|
61 |
api.add_route('/discountInfo/updateSkuDiscount/{_id}', skuDiscountInfo)
|
|
|
62 |
api.add_route('/dealerPrices/addDealerPrice', dealerPrice)
|
|
|
63 |
api.add_route('/dealerPrices/getAllDealerPrice', dealerPrice)
|
| 14041 |
kshitij.so |
64 |
api.add_route('/dealerPrices/updateDealerPrice/{_id}', dealerPrice)
|
| 14045 |
kshitij.so |
65 |
api.add_route('/resetCache/{userId}',resetCache)
|
| 14077 |
kshitij.so |
66 |
api.add_route('/Catalog/generateDealSheetForUser/{userId}',userDeals)
|
| 14427 |
amit.gupta |
67 |
api.add_route('/Catalog/updateCollection', commonUpdate)
|
|
|
68 |
api.add_route('/transactions/', transactions)
|
| 14481 |
kshitij.so |
69 |
api.add_route('/rawhtml/{orderId}', rawHtml)
|
|
|
70 |
api.add_route('/negativeDeals/addNegativeDeals', negativeDeals)
|
|
|
71 |
api.add_route('/negativeDeals/getNegativeDeals', negativeDeals)
|
|
|
72 |
api.add_route('/manualDeals/addManualDeals', manualDeals)
|
|
|
73 |
api.add_route('/manualDeals/getManualDeals', manualDeals)
|
| 14482 |
kshitij.so |
74 |
api.add_route('/Catalog/deleteDocument', commonDelete)
|
|
|
75 |
api.add_route('/Catalog/searchMaster',searchProduct)
|
| 14495 |
kshitij.so |
76 |
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
|
|
|
77 |
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
|