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)
def populate_customer_group_pricing_api(router): """ :param router: Router :type router: rest_framework.routers.DefaultRouter """ router.register("shuup/cgp_price", viewset_factory(CgpPrice))