@@ -47,7 +47,9 @@ def retry_send_verification_email(self, user, request):
4747 send_verification_email (user , request )
4848
4949 @swagger_auto_schema (
50- methods = ["POST" ], responses = {status .HTTP_200_OK : TokenSerializer ()}
50+ methods = ["POST" ],
51+ responses = {status .HTTP_200_OK : TokenSerializer ()},
52+ tags = ["auth" ],
5153 )
5254 @action (methods = ["POST" ], detail = False )
5355 def login (self , request , * args , ** kwargs ):
@@ -70,7 +72,9 @@ def login(self, request, *args, **kwargs):
7072 return Response (TokenSerializer (token ).data )
7173
7274 @swagger_auto_schema (
73- methods = ["POST" ], responses = {status .HTTP_200_OK : TokenSerializer ()}
75+ methods = ["POST" ],
76+ responses = {status .HTTP_200_OK : TokenSerializer ()},
77+ tags = ["auth" ],
7478 )
7579 @action (methods = ["POST" ], detail = False , serializer_class = UserSerializer )
7680 def register (self , request , * args , ** kwargs ):
@@ -149,6 +153,7 @@ def get_queryset(self):
149153
150154 @swagger_auto_schema (
151155 responses = {status .HTTP_200_OK : UserProfileSerializer ()},
156+ tags = ["auth" , "profile" ],
152157 )
153158 def retrieve (self , request , * args , ** kwargs ):
154159 user : User = request .user
@@ -172,6 +177,7 @@ def retrieve(self, request, *args, **kwargs):
172177
173178 @swagger_auto_schema (
174179 responses = {status .HTTP_200_OK : UserProfileSerializer ()},
180+ tags = ["auth" , "profile" ],
175181 )
176182 def update (self , request , * args , ** kwargs ):
177183 username = kwargs .get ("username" , "" )
@@ -201,6 +207,7 @@ class ChangePasswordViewSet(viewsets.GenericViewSet):
201207 @swagger_auto_schema (
202208 request_body = ChangePasswordSerializer ,
203209 responses = {status .HTTP_200_OK : TokenSerializer ()},
210+ tags = ["account" ],
204211 )
205212 @action (
206213 methods = ["PATCH" ],
@@ -245,7 +252,9 @@ def get_parameters(self, request):
245252 return token , user_id
246253
247254 @swagger_auto_schema (
248- methods = ["POST" ], responses = {status .HTTP_200_OK : TokenSerializer ()}
255+ methods = ["POST" ],
256+ responses = {status .HTTP_200_OK : TokenSerializer ()},
257+ tags = ["account" ],
249258 )
250259 @action (
251260 methods = ["POST" ],
@@ -288,6 +297,7 @@ def request(self, request, *args, **kwargs):
288297 },
289298 ),
290299 },
300+ tags = ["account" ],
291301 )
292302 @action (methods = ["GET" ], detail = False )
293303 def validate (self , request , * args , ** kwargs ):
@@ -318,6 +328,7 @@ def validate(self, request, *args, **kwargs):
318328 },
319329 ),
320330 },
331+ tags = ["account" ],
321332 )
322333 @action (
323334 methods = ["PATCH" ], detail = False , serializer_class = ResetPasswordConfirmSerializer
0 commit comments