2023-08-17 15:43:39 +03:00
|
|
|
''' Routing: RSForms for conceptual schemas. '''
|
2023-07-15 17:46:19 +03:00
|
|
|
from django.urls import path, include
|
|
|
|
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
|
2023-08-26 17:26:49 +03:00
|
|
|
library_router = routers.SimpleRouter(trailing_slash=False)
|
2023-08-25 22:51:20 +03:00
|
|
|
library_router.register('library', views.LibraryViewSet)
|
|
|
|
library_router.register('rsforms', views.RSFormViewSet)
|
2023-07-15 17:46:19 +03:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-08-26 17:26:49 +03:00
|
|
|
path('library/active', views.LibraryActiveView.as_view(), name='library'),
|
2023-10-23 20:55:12 +03:00
|
|
|
path('library/templates', views.LibraryTemplatesView.as_view(), name='library'),
|
2023-08-26 17:26:49 +03:00
|
|
|
path('constituents/<int:pk>', views.ConstituentAPIView.as_view(), name='constituenta-detail'),
|
|
|
|
path('rsforms/import-trs', views.TrsImportView.as_view()),
|
|
|
|
path('rsforms/create-detailed', views.create_rsform),
|
2023-09-24 19:08:17 +03:00
|
|
|
|
|
|
|
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),
|
|
|
|
|
2023-08-25 22:51:20 +03:00
|
|
|
path('', include(library_router.urls)),
|
2023-07-15 17:46:19 +03:00
|
|
|
]
|