from django.urls import path, include
from . import views
from rest_framework.routers import DefaultRouter
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
from rest_framework.permissions import AllowAny

# Create the router for pricing-related views
router_pricing = DefaultRouter()

# Register any viewsets with the router (example)
# router_pricing.register(r'example', views.ExampleViewSet)

# Swagger schema view for pricing
schema_view_pricing = get_schema_view(
    openapi.Info(
        title="Store Management API - Pricing",
        default_version='v1',
        description="API for managing pricing in the franchise store",
        terms_of_service="https://www.example.com/terms/",
        contact=openapi.Contact(email="support@example.com"),
        license=openapi.License(name="BSD License"),
    ),
    public=True,
    permission_classes=(AllowAny,),
)

urlpatterns = [
    path('generate-path/', views.generate_path, name='generate_path'),
]
