| Line 3... |
Line 3... |
| 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, RetailerActivation, SearchUser
|
8 |
AddContactToRetailer, RetailerActivation, SearchUser, StaticDeals
|
| 9 |
|
9 |
|
| 10 |
import falcon
|
10 |
import falcon
|
| 11 |
|
11 |
|
| 12 |
wsgi_app = api = falcon.API()
|
12 |
wsgi_app = api = falcon.API()
|
| 13 |
|
13 |
|
| Line 47... |
Line 47... |
| 47 |
dealBrands = DealBrands()
|
47 |
dealBrands = DealBrands()
|
| 48 |
dealRank = DealRank()
|
48 |
dealRank = DealRank()
|
| 49 |
login = Login()
|
49 |
login = Login()
|
| 50 |
addContactToRetailer= AddContactToRetailer()
|
50 |
addContactToRetailer= AddContactToRetailer()
|
| 51 |
searchUser = SearchUser()
|
51 |
searchUser = SearchUser()
|
| - |
|
52 |
staticDeals = StaticDeals()
|
| 52 |
|
53 |
|
| 53 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
54 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
| 54 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
55 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
| 55 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
56 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
| 56 |
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
|
57 |
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
|
| Line 101... |
Line 102... |
| 101 |
api.add_route('/deals/getRank/', dealRank)
|
102 |
api.add_route('/deals/getRank/', dealRank)
|
| 102 |
api.add_route('/agent/logout/{agentId}/{role}',login)
|
103 |
api.add_route('/agent/logout/{agentId}/{role}',login)
|
| 103 |
api.add_route('/agent/login',login)
|
104 |
api.add_route('/agent/login',login)
|
| 104 |
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
|
105 |
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
|
| 105 |
api.add_route('/retailerActivated/{userId}', retailerActivation)
|
106 |
api.add_route('/retailerActivated/{userId}', retailerActivation)
|
| 106 |
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
|
- |
|
| 107 |
|
107 |
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
|
| - |
|
108 |
api.add_route('/getStaticDeals/',staticDeals)
|
| - |
|
109 |
|
| 108 |
|
110 |
|