Added jwt, swagger...

This commit is contained in:
maciejrusek
2026-03-11 23:20:03 +01:00
parent f84c708f0a
commit ca605ac59d
14 changed files with 83 additions and 7 deletions

View File

View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class AuthenticationConfig(AppConfig):
name = 'apps.authentication'

View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@@ -0,0 +1,14 @@
from django.urls import include, path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView
)
urlpatterns = [
path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
#path('signup/', ),
path('refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('verify/', TokenVerifyView.as_view(), name='token_verify'),
]

View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.