text: from django.urls import include, path
  from rest_framework import routers
  from . import views, reasoner
  
  
  router = routers.DefaultRouter()
  router.register(r'workspaces', views.WorkspaceAPIViewSet)
  
  app_name = 'blawx'
  urlpatterns = [
      path('', views.RuleDocsView.as_view(), name='ruledocs'),
      path('<int:pk>/', views.RuleDocView.as_view(), name='ruledoc'),
      path('<int:pk>/rule/<slug:section_name>/', views.ruleDocLegalTextView, name="ruledoc_text"),
      path('<int:pk>/edit/', views.RuleDocEditView.as_view(), name='ruledoc_edit'),
      path('<int:pk>/code/', views.BlawxView.as_view(), name="code"),
      path('<int:pk>/test/new/', views.TestCreateView.as_view(), name="new_test"),
      path('<int:pk>/test/<slug:test_name>/', views.TestView.as_view(), name="test"),
      path('<int:pk>/test/<slug:test_name>/delete/', views.TestDeleteView.as_view(), name="delete_test"),
      path('<int:ruledoc>/test/<slug:test_name>/get/', views.get_test, name="get_test_code"),
      path('<int:ruledoc>/test/<slug:test_name>/update/', views.update_test, name="update_test_code"),
      path('<int:ruledoc>/test/<slug:test_name>/run/',reasoner.run_test, name="run_test"),
      path('<int:ruledoc>/test/<slug:test_name>/onto/',reasoner.get_ontology, name="test_onto"),
      path('<int:ruledoc>/test/<slug:test_name>/interview/',reasoner.interview, name="test_interview"),
      path('<int:ruledoc>/test/<slug:test_name>/bot/',views.BlawxBot.as_view(), name="blawx_bot"),
      path('<int:pk>/<str:workspace>/update/', views.update_code, name="update_workspace_code"),
      path('<int:pk>/all/get/', views.get_all_code, name="get_all_workspaces_code"),
      path('<int:pk>/<str:workspace>/get/', views.get_code, name="get_workspace_code"),
      path('<int:pk>/delete/', views.RuleDocDeleteView.as_view(), name="ruledoc_delete"),
      path('create/', views.RuleDocCreateView.as_view(), name="ruledoc_create"),
      path('docs/<path:pk>/', views.DocumentView.as_view(), name="docs_page"),
      path('api/', include(router.urls)),
      path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      path('query/<str:workspace>/<str:query>/', reasoner.run_query),
      path('<int:pk>/run/', reasoner.run_ruledoc, name="runcode"),
      path('example/<int:pk>/', views.get_example),
  ]
  