Skip to content

Commit

Permalink
chore: remove openapi tags
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Dec 14, 2024
1 parent 81e9a41 commit 6b321af
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions backend/apps/quib/api/v1/viewsets.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from drf_spectacular.utils import extend_schema
from rest_framework import viewsets

from ...models import QuibModel
from .serializers import QuibSerializer, QuibSlimSerializer


@extend_schema(tags=['quibs & quiblets'])
class QuibViewSet(viewsets.ModelViewSet):
queryset = QuibModel.objects.all()

Expand Down
2 changes: 0 additions & 2 deletions backend/apps/quiblet/api/v1/viewsets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import cast

from drf_spectacular.utils import extend_schema
from rest_framework.viewsets import ModelViewSet

from common.patches.request import PatchedHttpRequest
Expand All @@ -9,7 +8,6 @@
from .serializers import QuibletSerializer


@extend_schema(tags=['quibs & quiblets'])
class QuibletViewSet(ModelViewSet):
queryset = QuibletModel.objects.all()
serializer_class = QuibletSerializer
Expand Down
4 changes: 0 additions & 4 deletions backend/apps/user/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from .serializers import AuthSerializer, AuthTokenResponseSerializer, ProfileSerializer


@extend_schema(tags=['auth'])
class LoginAPIView(views.APIView):
"""
Customized drf basic token authentication.
Expand All @@ -33,7 +32,6 @@ def post(self, request, format=None):
raise exceptions.AuthenticationFailed()


@extend_schema(tags=['auth'])
class LogoutAPIView(views.APIView):
"""
View to handle user logout by deleting the authentication token.
Expand All @@ -51,7 +49,6 @@ def post(self, request, format=None):
raise ServerError(f"An error occurred while logging out: {str(e)}")


@extend_schema(tags=['auth'])
class RegisterAPIView(generics.CreateAPIView):
"""
View to handle registering of new users.
Expand All @@ -60,7 +57,6 @@ class RegisterAPIView(generics.CreateAPIView):
serializer_class = AuthSerializer


@extend_schema(tags=['me & profiles'])
class MeAPIView(views.APIView):
"""
View to retrieve information for the currently authenticated user.
Expand Down
3 changes: 0 additions & 3 deletions backend/apps/user/api/v1/viewsets.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from django.conf import settings
from drf_spectacular.utils import extend_schema
from rest_framework import exceptions, filters, permissions, viewsets

from ...models import ProfileModel
from .serializers import ProfileSerializer


@extend_schema(tags=['me & profiles'])
class ProfileViewSet(viewsets.ReadOnlyModelViewSet):
"""
ViewSet for performing read-only operations on the Profile model.
Expand All @@ -21,7 +19,6 @@ class ProfileViewSet(viewsets.ReadOnlyModelViewSet):
search_fields = ('username',)


@extend_schema(tags=['me & profiles'])
class MyProfilesViewSet(viewsets.ModelViewSet):
"""
ViewSet to manage profiles associated with the authenticated user.
Expand Down

0 comments on commit 6b321af

Please sign in to comment.