ConceptPortal-public/rsconcept/backend/apps/rsform/urls.py

39 lines
1.7 KiB
Python
Raw Normal View History

''' 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)
library_router.register('library', views.LibraryViewSet, 'Library')
library_router.register('rsforms', views.RSFormViewSet, 'RSForm')
2024-05-18 19:22:26 +03:00
library_router.register('versions', views.VersionViewset, 'Version')
2023-07-15 17:46:19 +03:00
urlpatterns = [
path('library/active', views.LibraryActiveView.as_view()),
path('library/all', views.LibraryAdminView.as_view()),
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
2024-03-07 15:22:50 +03:00
path('versions/<int:pk>/export-file', views.export_file),
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
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),
2024-06-21 18:47:46 +03:00
path('synthesis/run_single', views.run_synthesis_view),
path('synthesis/run_all', views.run_synthesis_graph_view),
2024-06-21 18:47:46 +03:00
path('synthesis/save', views.save_synthesis_graph),
path('synthesis/<int:pk_item>', views.get_synthesis_graph),
2023-08-25 22:51:20 +03:00
path('', include(library_router.urls)),
2023-07-15 17:46:19 +03:00
]