mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 01:49:56 +02:00
See #432: API endpoint to query tags
This commit is contained in:
parent
e11c1dfe29
commit
9f3076f4db
9 changed files with 135 additions and 9 deletions
|
@ -447,14 +447,6 @@ class UploadViewSet(
|
|||
instance.delete()
|
||||
|
||||
|
||||
class TagViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
queryset = Tag.objects.all().order_by("name")
|
||||
serializer_class = serializers.TagSerializer
|
||||
permission_classes = [oauth_permissions.ScopePermission]
|
||||
required_scope = "libraries"
|
||||
anonymous_policy = "setting"
|
||||
|
||||
|
||||
class Search(views.APIView):
|
||||
max_results = 3
|
||||
permission_classes = [oauth_permissions.ScopePermission]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue