Declaring resource actions
Any methods on the resource viewset decorated with
@action(detail=True, methods=['post'])
will be recognized as resource
actions. For example:
1 2 3 4 5 6 7 8 9 |
|
Complex actions and serializers
If your action uses serializer to parse complex data, you should declare action-specific serializers on the resource viewset. For example:
1 2 3 4 |
|
Last update:
2023-10-23