예제 #1
0
파일: __init__.py 프로젝트: zarlant/shuup
def populate_core_api(router):
    """
    :param router: Router
    :type router: rest_framework.routers.DefaultRouter
    """
    router.register("shuup/category", viewset_factory(Category))
    router.register("shuup/contact", viewset_factory(Contact))
    router.register("shuup/order", OrderViewSet)
    router.register("shuup/product", ProductViewSet)
    router.register("shuup/shop", viewset_factory(Shop))
    router.register("shuup/shop_product", ShopProductViewSet)
예제 #2
0
파일: api.py 프로젝트: suutari/shoop
def populate_customer_group_pricing_api(router):
    """
    :param router: Router
    :type router: rest_framework.routers.DefaultRouter
    """
    router.register("shuup/cgp_price", viewset_factory(CgpPrice))