Subversion Repositories SmartDukaan

Rev

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

Rev 14586 Rev 14619
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, SearchProduct, FeaturedDeals, CommonSearch
6
    ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, CommonSearch, CricScore
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 33... Line 33...
33
manualDeals = ManualDeals()
33
manualDeals = ManualDeals()
34
commonDelete = CommonDelete()
34
commonDelete = CommonDelete()
35
searchProduct = SearchProduct()
35
searchProduct = SearchProduct()
36
featuredDeals = FeaturedDeals()
36
featuredDeals = FeaturedDeals()
37
commonSearch = CommonSearch()
37
commonSearch = CommonSearch()
-
 
38
cricScore = CricScore()
38
 
39
 
39
 
40
 
40
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
41
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
41
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
42
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
42
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
43
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
Line 76... Line 77...
76
api.add_route('/Catalog/deleteDocument', commonDelete)
77
api.add_route('/Catalog/deleteDocument', commonDelete)
77
api.add_route('/Catalog/searchMaster',searchProduct)
78
api.add_route('/Catalog/searchMaster',searchProduct)
78
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
79
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
79
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
80
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
80
api.add_route('/Catalog/searchProducts/',commonSearch)
81
api.add_route('/Catalog/searchProducts/',commonSearch)
81
 
-
 
-
 
82
api.add_route('/liveCricketScore/',cricScore)
82
 
83