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>
15 lines
479 B
Python
15 lines
479 B
Python
from drf_spectacular.openapi import AutoSchema
|
|
|
|
|
|
class TaggedAutoSchema(AutoSchema):
|
|
"""
|
|
Groups swagger operations by a `schema_tags` list set on the view, instead of
|
|
drf-spectacular's default (first URL path segment — which is "v1" for every
|
|
endpoint here, since everything lives under /api/v1/).
|
|
"""
|
|
|
|
def get_tags(self):
|
|
tags = getattr(self.view, 'schema_tags', None)
|
|
if tags:
|
|
return tags
|
|
return super().get_tags()
|