HTTP 404 Not Found
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"detail": "Страница не найдена."
}
class GetUserSonetView(RetrieveAPIView):
queryset = UserSonet.objects.all()
serializer_class = GetUserSonetSerializer
urlpatterns = [
path('<int:pk>/', views.GetUserSonetView.as_view())
]
class GetUserSonetSerializer(serializers.ModelSerializer):
class Meta:
model = UserSonet
fields = ('id', 'phone', 'email', 'github', 'gender')