''' Routing: RSForms for conceptual schemas. ''' from django.urls import path, include from rest_framework import routers from . import views library_router = routers.SimpleRouter(trailing_slash=False) library_router.register('library', views.LibraryViewSet) library_router.register('rsforms', views.RSFormViewSet) urlpatterns = [ path('library/active', views.LibraryActiveView.as_view(), name='library'), path('library/templates', views.LibraryTemplatesView.as_view(), name='templates'), path('constituents/', views.ConstituentAPIView.as_view(), name='constituenta-detail'), path('rsforms/import-trs', views.TrsImportView.as_view()), path('rsforms/create-detailed', views.create_rsform), path('versions/', views.VersionAPIView.as_view()), path('rsforms//versions/create', views.create_version), path('rsforms//versions/', views.retrieve_version), path('rslang/parse-expression', views.parse_expression), path('rslang/to-ascii', views.convert_to_ascii), path('rslang/to-math', views.convert_to_math), path('cctext/inflect', views.inflect), path('cctext/generate-lexeme', views.generate_lexeme), path('cctext/parse', views.parse_text), path('', include(library_router.urls)), ]