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)
|
2024-03-26 09:32:53 +03:00
|
|
|
library_router.register('library', views.LibraryViewSet, 'Library')
|
|
|
|
library_router.register('rsforms', views.RSFormViewSet, 'RSForm')
|
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'),
|
2024-03-04 15:26:23 +03:00
|
|
|
path('library/templates', views.LibraryTemplatesView.as_view(), name='templates'),
|
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),
|
2024-03-04 15:26:23 +03:00
|
|
|
|
|
|
|
path('versions/<int:pk>', views.VersionAPIView.as_view()),
|
2024-03-07 15:22:50 +03:00
|
|
|
path('versions/<int:pk>/export-file', views.export_file),
|
2024-03-03 22:00:22 +03:00
|
|
|
path('rsforms/<int:pk_item>/versions/create', views.create_version),
|
2024-03-04 15:26:23 +03:00
|
|
|
path('rsforms/<int:pk_item>/versions/<int:pk_version>', views.retrieve_version),
|
2023-09-24 19:08:17 +03:00
|
|
|
|
2024-03-21 21:05:12 +03:00
|
|
|
path('operations/inline-synthesis', views.inline_synthesis),
|
|
|
|
|
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
|
|
|
]
|