from django.urls import path, re_path from frog_api.views import data, structure urlpatterns = [ # structure (/project) path( "projects/", structure.ProjectStructureView.as_view(), ), re_path( "projects/(?P.+)/(?P.+)/$", structure.CategoryStructureView.as_view(), name="category-structure", ), # data (/data) re_path( "data/(?P.+)/(?P.+)/(?P.+)/$", data.CategoryDataView.as_view(), ), re_path( "data/(?P.+)/(?P.+)/$", data.VersionDataView.as_view(), name="version-data", ), re_path( "data/(?P.+)/$", data.ProjectDataView.as_view(), ), path( "data/", data.RootDataView.as_view(), ), ]