16 lines
794 B
Python
16 lines
794 B
Python
from django.urls import path
|
|
from .views import (PredictionCreateView, PredictionListView, PredictionDeleteView,
|
|
PredictionHistoryListView,
|
|
PredictionHistoryDetailView,
|
|
PredictionHistoryDeleteView,)
|
|
from rest_framework.authtoken.views import obtain_auth_token
|
|
|
|
urlpatterns = [
|
|
path('predictions', PredictionCreateView.as_view(), name='create_prediction'),
|
|
path('predictions', PredictionListView.as_view(), name='get_predictions'),
|
|
path('predictions/<uuid:pk>', PredictionDeleteView.as_view(), name='delete_prediction'),
|
|
path('token/', obtain_auth_token),
|
|
path("history/", PredictionHistoryListView.as_view()),
|
|
path("history/<uuid:pk>/", PredictionHistoryDetailView.as_view()),
|
|
path("history/<uuid:pk>/delete/", PredictionHistoryDeleteView.as_view()),
|
|
]
|