added functionality to Serializer validate method

This commit is contained in:
fjrodriguez
2023-01-25 09:09:13 -06:00
parent 2e432ae674
commit 2f44b7d929
13 changed files with 367 additions and 20 deletions

View File

@@ -7,10 +7,14 @@ from .views import (
SistemasXCliente_DetailView,
#DRF APIViews
Registrar_PC,
RegisterDeviceView,
AuthenticateDeviceView,
LogoutView,
)
urlpatterns = [
path('',SistemasXCliente_ListView.as_view(),name='lista_sistmas'),
path('detail/<str:pk>/',SistemasXCliente_DetailView.as_view(),name='detail_sistemas'),
path('registerPC/',Registrar_PC.as_view(),name='register_PC'),
path('registerPC/',RegisterDeviceView.as_view(),name='register_PC'),
path('authenticatePC/',AuthenticateDeviceView.as_view(), name="authenticateDevice"),
path('logout/', LogoutView.as_view(), name='logout_sistemas'),
]