Django 6 + DRF resource server against the Gooyal accounts OAuth2 service, matching the Winsoo ecosystem's conventions. Covers locations, stores, catalog, cart, checkout/orders (with the multi-store-cart split and the status stepper), reviews, and notifications, plus a demo-data seed command. Payment integration (wallet debits, online gateway, seller payouts) is intentionally left out here — see feature/payment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
12 lines
444 B
Python
12 lines
444 B
Python
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views import ProductCategoryViewSet, ProductViewSet, SellerProductViewSet
|
|
|
|
app_name = "catalog"
|
|
|
|
router = DefaultRouter()
|
|
router.register('products', ProductViewSet, basename='product')
|
|
router.register('product-categories', ProductCategoryViewSet, basename='product-category')
|
|
router.register('seller/products', SellerProductViewSet, basename='seller-product')
|
|
|
|
urlpatterns = router.urls
|