Rename operation ids
This commit is contained in:
parent
cbbf6c2c40
commit
68face201b
20 changed files with 14173 additions and 23 deletions
|
|
@ -1,6 +1,8 @@
|
|||
from rest_framework import viewsets
|
||||
from rest_framework.response import Response
|
||||
|
||||
from drf_spectacular.utils import extend_schema
|
||||
|
||||
from funkwhale_api.common.permissions import ConditionalAuthentication
|
||||
from funkwhale_api.favorites.models import TrackFavorite
|
||||
|
||||
|
|
@ -13,6 +15,7 @@ class ActivityViewSet(viewsets.GenericViewSet):
|
|||
permission_classes = [ConditionalAuthentication]
|
||||
queryset = TrackFavorite.objects.none()
|
||||
|
||||
@extend_schema(operation_id='get_activity')
|
||||
def list(self, request, *args, **kwargs):
|
||||
activity = utils.get_activity(user=request.user)
|
||||
serializer = self.serializer_class(activity, many=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue