2023-08-17 15:43:39 +03:00
|
|
|
''' Routing: RSForms for conceptual schemas. '''
|
2024-05-24 18:31:14 +03:00
|
|
|
from django.urls import include, path
|
2023-07-15 17:46:19 +03:00
|
|
|
from rest_framework import routers
|
2024-05-24 18:31:14 +03:00
|
|
|
|
2023-07-15 17:46:19 +03:00
|
|
|
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('rsforms', views.RSFormViewSet, 'RSForm')
|
2024-07-25 19:12:59 +03:00
|
|
|
|
2023-07-15 17:46:19 +03:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-08-26 17:26:49 +03:00
|
|
|
path('rsforms/import-trs', views.TrsImportView.as_view()),
|
|
|
|
path('rsforms/create-detailed', views.create_rsform),
|
2024-07-31 14:02:33 +03:00
|
|
|
path('rsforms/inline-synthesis', views.inline_synthesis),
|
2024-03-21 21:05:12 +03:00
|
|
|
|
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),
|
2024-07-20 13:12:28 +03:00
|
|
|
|
2023-08-25 22:51:20 +03:00
|
|
|
path('', include(library_router.urls)),
|
2023-07-15 17:46:19 +03:00
|
|
|
]
|