SMART-42 registered retreive user profile endpoint

This commit is contained in:
s460930 2020-12-09 19:24:41 +01:00
parent 0b2da88942
commit 3c6736c98c
4 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,7 @@
"""
@author: p.dolata
"""
from rest_framework import status from rest_framework import status
from rest_framework.generics import RetrieveAPIView, CreateAPIView from rest_framework.generics import RetrieveAPIView, CreateAPIView
from rest_framework.permissions import AllowAny from rest_framework.permissions import AllowAny

View File

@ -0,0 +1,11 @@
"""
@author: p.dolata
"""
from django.conf.urls import url
from smartpicasso.app.user_profile.views import UserProfileView
urlpatterns = [
url(r'^profile', UserProfileView.as_view(), name='profile')
]

View File

@ -1,3 +1,7 @@
"""
@author: p.dolata
"""
from rest_framework import status from rest_framework import status
from rest_framework.generics import RetrieveAPIView from rest_framework.generics import RetrieveAPIView
from rest_framework.permissions import IsAuthenticated from rest_framework.permissions import IsAuthenticated

View File

@ -18,5 +18,6 @@ from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('api/', include('smartpicasso.app.user.urls')), path('api/', include('smartpicasso.app.user.urls')),
path('api/', include('smartpicasso.app.user_profile.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]