Spaces:
Sleeping
Sleeping
File size: 1,199 Bytes
e63103b 4cec855 e63103b f22dc64 1fd7b67 7a8dfd2 e63103b 4cec855 e63103b 4e93adb b34386c 1fd7b67 7a8dfd2 4cec855 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from drf_spectacular.views import SpectacularSwaggerView, SpectacularAPIView
from pdfs.views import getPDF
from resumos.views import ResumoView, ResumoCompletoCursorView
from modelos_usuarios.views import ListCreateModeloUsuarioView, CreateUpdateDeleteModeloUsuarioView, ListModelosPorUsuarioView
router = routers.DefaultRouter()
# router.register("endpoint-teste", EndpointTesteViewSet, basename="Basename do endpoint-teste")
urlpatterns = [
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path('swagger/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
path("admin/", admin.site.urls),
path('', include(router.urls)),
path('pdf', getPDF, name='upload-pdf'),
path('resumo', ResumoView.as_view(), name='summary-pdf'),
path('resumo/cursor', ResumoCompletoCursorView.as_view(), name='summary-cursor-pdf'),
path("modelo", ListCreateModeloUsuarioView.as_view()),
path("modelo/<int:pk>", CreateUpdateDeleteModeloUsuarioView.as_view()),
path("usuario/<int:user_id>/modelos", ListModelosPorUsuarioView.as_view())
] |