Subversion Repositories SmartDukaan

Rev

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

Rev 14671 Rev 14853
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
6
    ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, CommonSearch, CricScore, Notification
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 35... Line 35...
35
commonDelete = CommonDelete()
35
commonDelete = CommonDelete()
36
searchProduct = SearchProduct()
36
searchProduct = SearchProduct()
37
featuredDeals = FeaturedDeals()
37
featuredDeals = FeaturedDeals()
38
commonSearch = CommonSearch()
38
commonSearch = CommonSearch()
39
cricScore = CricScore()
39
cricScore = CricScore()
-
 
40
notification = Notification()
40
 
41
 
41
 
42
 
42
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
43
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
43
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
44
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
44
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
45
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
Line 80... Line 81...
80
api.add_route('/Catalog/searchMaster',searchProduct)
81
api.add_route('/Catalog/searchMaster',searchProduct)
81
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
82
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
82
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
83
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
83
api.add_route('/Catalog/searchProducts/',commonSearch)
84
api.add_route('/Catalog/searchProducts/',commonSearch)
84
api.add_route('/liveCricketScore/',cricScore)
85
api.add_route('/liveCricketScore/',cricScore)
85
 
-
 
-
 
86
api.add_route('/Catalog/notification/', notification)