events: fix typo in events API
This commit is contained in:
parent
f4580a1097
commit
77d5ba2862
|
@ -29,7 +29,7 @@ class EventSerializer(ModelSerializer):
|
|||
]
|
||||
|
||||
|
||||
class EventTopPerUserSerialier(Serializer):
|
||||
class EventTopPerUserSerializer(Serializer):
|
||||
"""Response object of Event's top_per_user"""
|
||||
|
||||
application = DictField()
|
||||
|
@ -60,7 +60,7 @@ class EventViewSet(ReadOnlyModelViewSet):
|
|||
filterset_fields = ["action"]
|
||||
|
||||
@swagger_auto_schema(
|
||||
method="GET", responses={200: EventTopPerUserSerialier(many=True)}
|
||||
method="GET", responses={200: EventTopPerUserSerializer(many=True)}
|
||||
)
|
||||
@action(detail=False, methods=["GET"])
|
||||
def top_per_user(self, request: Request):
|
||||
|
|
|
@ -1159,7 +1159,7 @@ paths:
|
|||
description: ''
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/EventTopPerUserSerialier'
|
||||
$ref: '#/definitions/EventTopPerUser'
|
||||
tags:
|
||||
- events
|
||||
parameters: []
|
||||
|
@ -9709,7 +9709,7 @@ definitions:
|
|||
type: string
|
||||
format: date-time
|
||||
readOnly: true
|
||||
EventTopPerUserSerialier:
|
||||
EventTopPerUser:
|
||||
description: Response object of Event's top_per_user
|
||||
required:
|
||||
- application
|
||||
|
|
Reference in a new issue