Bishwas-py / djapy

No bullshit, Django Rest API Framework
https://djapy.io
59 stars 3 forks source link

[Swagger/OpenAPI] Nested urls not being concadinated. #5

Closed Bishwas-py closed 5 months ago

Bishwas-py commented 5 months ago

Swagger not showing nested urls.

image

from django.contrib import admin
from django.urls import path, include
from djapy import openapi

urlpatterns = [
    path('todos/', include('todo.urls'), name="todos"),
    path('admin/', admin.site.urls),
    path('', openapi.urls),
]
# todo/urls.py
from django.urls import path

from todo import views

urlpatterns = [
    path('todo', views.get_todo_items, name='get-todo-items'),
]
Bishwas-py commented 5 months ago

Issue has been fixed in new commits.

Bishwas-py commented 5 months ago

Testing using:

pip install git+https://github.com/Bishwas-py/djapy.git@main
or
pip install git+https://github.com/Bishwas-py/djapy.git@aa195e3202b324207eb5a8a244cc3a3e920be794
Bishwas-py commented 5 months ago

It's now fixed.