Subversion Repositories SmartDukaan

Rev

Rev 14853 | Rev 15081 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14853 Rev 15000
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, PendingCashBacks, 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, SearchProduct, FeaturedDeals, CommonSearch, CricScore, Notification
6
    ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, CommonSearch, CricScore, Notification, \
-
 
7
    DealBrands
7
import falcon
8
import falcon
8
 
9
 
9
wsgi_app = api = falcon.API()
10
wsgi_app = api = falcon.API()
10
 
11
 
11
categoryDiscountInfo = CategoryDiscountInfo()
12
categoryDiscountInfo = CategoryDiscountInfo()
Line 36... Line 37...
36
searchProduct = SearchProduct()
37
searchProduct = SearchProduct()
37
featuredDeals = FeaturedDeals()
38
featuredDeals = FeaturedDeals()
38
commonSearch = CommonSearch()
39
commonSearch = CommonSearch()
39
cricScore = CricScore()
40
cricScore = CricScore()
40
notification = Notification()
41
notification = Notification()
-
 
42
dealBrands = DealBrands()
41
 
43
 
42
 
44
 
43
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
45
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
44
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
46
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
45
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
47
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
Line 82... Line 84...
82
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
84
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
83
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
85
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
84
api.add_route('/Catalog/searchProducts/',commonSearch)
86
api.add_route('/Catalog/searchProducts/',commonSearch)
85
api.add_route('/liveCricketScore/',cricScore)
87
api.add_route('/liveCricketScore/',cricScore)
86
api.add_route('/Catalog/notification/', notification)
88
api.add_route('/Catalog/notification/', notification)
-
 
89
api.add_route('/deals/brands/', dealBrands)