| Line 1... |
Line 1... |
| 1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, Orders, \
|
1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, Orders, \
|
| 2 |
Transactions, RawHtml
|
2 |
Transactions, RawHtml
|
| 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, NegativeDeals, \
|
| 6 |
ManualDeals, CommonDelete
|
6 |
ManualDeals, CommonDelete, SearchProduct
|
| 7 |
import falcon
|
7 |
import falcon
|
| 8 |
|
8 |
|
| 9 |
wsgi_app = api = falcon.API()
|
9 |
wsgi_app = api = falcon.API()
|
| 10 |
|
10 |
|
| 11 |
categoryDiscountInfo = CategoryDiscountInfo()
|
11 |
categoryDiscountInfo = CategoryDiscountInfo()
|
| Line 30... |
Line 30... |
| 30 |
commonUpdate = CommonUpdate()
|
30 |
commonUpdate = CommonUpdate()
|
| 31 |
orders = Orders()
|
31 |
orders = Orders()
|
| 32 |
negativeDeals = NegativeDeals()
|
32 |
negativeDeals = NegativeDeals()
|
| 33 |
manualDeals = ManualDeals()
|
33 |
manualDeals = ManualDeals()
|
| 34 |
commonDelete = CommonDelete()
|
34 |
commonDelete = CommonDelete()
|
| - |
|
35 |
searchProduct = SearchProduct()
|
| 35 |
|
36 |
|
| 36 |
|
37 |
|
| 37 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
38 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
| 38 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
39 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
| 39 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
40 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
| Line 67... |
Line 68... |
| 67 |
api.add_route('/rawhtml/{orderId}', rawHtml)
|
68 |
api.add_route('/rawhtml/{orderId}', rawHtml)
|
| 68 |
api.add_route('/negativeDeals/addNegativeDeals', negativeDeals)
|
69 |
api.add_route('/negativeDeals/addNegativeDeals', negativeDeals)
|
| 69 |
api.add_route('/negativeDeals/getNegativeDeals', negativeDeals)
|
70 |
api.add_route('/negativeDeals/getNegativeDeals', negativeDeals)
|
| 70 |
api.add_route('/manualDeals/addManualDeals', manualDeals)
|
71 |
api.add_route('/manualDeals/addManualDeals', manualDeals)
|
| 71 |
api.add_route('/manualDeals/getManualDeals', manualDeals)
|
72 |
api.add_route('/manualDeals/getManualDeals', manualDeals)
|
| 72 |
api.add_route('/Catalog/deleteDocument', commonDelete)
|
- |
|
| 73 |
|
73 |
api.add_route('/Catalog/deleteDocument', commonDelete)
|
| - |
|
74 |
api.add_route('/Catalog/searchMaster',searchProduct)
|
| - |
|
75 |
|