You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

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_logictics = 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'),
path('swagger/', schema_view_logictics.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui-inventory'),
]