FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 4e8801b1 authored by E. Evstafiev's avatar E. Evstafiev :bulb:
Browse files

docs: update `operation_id` wordings

parent f9d6e611
No related branches found
No related tags found
1 merge request!52Resolve "Ensure OpenAPI specification is generated correctly"
Pipeline #650073 passed
......@@ -27,7 +27,7 @@ class AccountDetailsView(generics.RetrieveUpdateAPIView):
),
},
methods=["GET"],
operation_id="getAccountDetails",
operation_id="getAccount",
)
def get(self, request, *args, **kwargs):
return super().get(request, *args, **kwargs)
......@@ -51,7 +51,7 @@ class AccountDetailsView(generics.RetrieveUpdateAPIView):
),
},
methods=["PATCH"],
operation_id="updateAccountDetails",
operation_id="patchAccount",
)
def patch(self, request, *args, **kwargs):
return super().patch(request, *args, **kwargs)
......@@ -43,7 +43,7 @@ class VersionsView(APIView):
"that version can be accessed at",
),
},
operation_id="getVersions",
operation_id="getApiVersions",
)
def get(self, request):
return Response(
......
......@@ -43,7 +43,7 @@ class LoginView(KnoxLoginView):
),
},
tags=["authentication"],
operation_id="authenticateUser",
operation_id="getToken",
)
def post(self, request, *args, **kwargs):
serializer = self.get_serializer(data=request.data)
......@@ -117,7 +117,7 @@ class LogoutView(views.APIView):
),
},
methods=["POST"],
operation_id="logoutUser",
operation_id="revokeTokenSession",
)
def post(self, request, format=None):
request._auth.delete()
......@@ -149,7 +149,7 @@ class LogoutAllView(views.APIView):
),
},
methods=["POST"],
operation_id="logoutFromAllSessions",
operation_id="revokeAllTokenSessions",
)
def post(self, request, format=None):
request.user.auth_token_set.all().delete()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment