ConceptPortal-public/rsconcept/backend/apps/rsform/urls.py
2023-09-24 19:08:17 +03:00

26 lines
992 B
Python

''' 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('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),
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)),
]