diff --git a/inventory/__pycache__/__init__.cpython-310.pyc b/inventory/__pycache__/__init__.cpython-310.pyc index c625c7f..cbdfa45 100644 Binary files a/inventory/__pycache__/__init__.cpython-310.pyc and b/inventory/__pycache__/__init__.cpython-310.pyc differ diff --git a/inventory/__pycache__/apps.cpython-310.pyc b/inventory/__pycache__/apps.cpython-310.pyc index 0af6901..978f291 100644 Binary files a/inventory/__pycache__/apps.cpython-310.pyc and b/inventory/__pycache__/apps.cpython-310.pyc differ diff --git a/inventory/__pycache__/models.cpython-310.pyc b/inventory/__pycache__/models.cpython-310.pyc index 43bcc61..6c9e0be 100644 Binary files a/inventory/__pycache__/models.cpython-310.pyc and b/inventory/__pycache__/models.cpython-310.pyc differ diff --git a/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc b/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc index 1735705..c4ea00a 100644 Binary files a/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc and b/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc differ diff --git a/inventory/migrations/__pycache__/__init__.cpython-310.pyc b/inventory/migrations/__pycache__/__init__.cpython-310.pyc index 1a2af7b..0a89eba 100644 Binary files a/inventory/migrations/__pycache__/__init__.cpython-310.pyc and b/inventory/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/logistic/urls.py b/logistic/urls.py index d17f943..173c3bb 100644 --- a/logistic/urls.py +++ b/logistic/urls.py @@ -12,7 +12,7 @@ router_pricing = DefaultRouter() # router_pricing.register(r'example', views.ExampleViewSet) # Swagger schema view for pricing -schema_view_pricing = get_schema_view( +schema_view_logictics = get_schema_view( openapi.Info( title="Store Management API - Pricing", default_version='v1', @@ -27,4 +27,6 @@ schema_view_pricing = get_schema_view( 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'), + ] diff --git a/logs.log b/logs.log index 54f6340..6115db0 100644 --- a/logs.log +++ b/logs.log @@ -957,3 +957,29 @@ Watching for file changes with StatReloader Watching for file changes with StatReloader /home/dark/Documents/GitHub/store-management-system/hr/models.py changed, reloading. Watching for file changes with StatReloader +Watching for file changes with StatReloader +Watching for file changes with StatReloader +Not Found: / +"GET / HTTP/1.1" 404 3238 +Not Found: /api/logistic/ +"GET /api/logistic/ HTTP/1.1" 404 3421 +Not Found: /api/logistic/swagger +"GET /api/logistic/swagger HTTP/1.1" 404 3442 +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +"GET /api/logistic/swagger HTTP/1.1" 301 0 +"GET /api/logistic/swagger/ HTTP/1.1" 200 2246 +"GET /static/drf-yasg/style.css HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui.css HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-init.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/insQ.min.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-bundle.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/immutable.min.js HTTP/1.1" 304 0 +"GET /api/logistic/swagger/?format=openapi HTTP/1.1" 200 55780 diff --git a/settings/__pycache__/__init__.cpython-310.pyc b/settings/__pycache__/__init__.cpython-310.pyc index c0f6ea3..d653309 100644 Binary files a/settings/__pycache__/__init__.cpython-310.pyc and b/settings/__pycache__/__init__.cpython-310.pyc differ diff --git a/settings/__pycache__/base.cpython-310.pyc b/settings/__pycache__/base.cpython-310.pyc index 92793c0..f28b098 100644 Binary files a/settings/__pycache__/base.cpython-310.pyc and b/settings/__pycache__/base.cpython-310.pyc differ diff --git a/settings/__pycache__/dev.cpython-310.pyc b/settings/__pycache__/dev.cpython-310.pyc index 74a028f..547bf84 100644 Binary files a/settings/__pycache__/dev.cpython-310.pyc and b/settings/__pycache__/dev.cpython-310.pyc differ diff --git a/urls.py b/urls.py index fedd945..1187a41 100644 --- a/urls.py +++ b/urls.py @@ -8,6 +8,6 @@ urlpatterns = [ path('api/goods-reception/', include('goods_reception.urls')), path('api/warehouse/', include('warehouse.urls')), path('api/hr/', include('hr.urls')), - path('logistic/', include('logistic.urls')), + path('api/logistic/', include('logistic.urls')), path('api/hq/', include('hq.urls')), ]