"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ from django.urls import include, path from . import api app_name = 'ml' # ML backend CRUD _api_urlpatterns = [ # All ml backends path('', api.MLBackendListAPI.as_view(), name='ml-list'), path('', api.MLBackendDetailAPI.as_view(), name='ml-detail'), path('/train', api.MLBackendTrainAPI.as_view(), name='ml-train'), path('/predict/test', api.MLBackendPredictTestAPI.as_view(), name='ml-predict-test'), path( '/interactive-annotating', api.MLBackendInteractiveAnnotating.as_view(), name='ml-interactive-annotating', ), path('/versions', api.MLBackendVersionsAPI.as_view(), name='ml-versions'), ] urlpatterns = [ path('api/ml/', include((_api_urlpatterns, app_name), namespace='api')), ]