first commit

This commit is contained in:
afanasyev.aa 2025-04-04 18:16:08 +09:00
parent 6bdba48fa5
commit 7f28fe580d
38 changed files with 452 additions and 0 deletions

10
api/urls.py Normal file
View file

@ -0,0 +1,10 @@
from django.urls import path
from .views import PredictionCreateView, PredictionListView, PredictionDeleteView
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('api/token/', obtain_auth_token),
]