EDIT: I forgot to answer the input parameters. I believe this will be based on a serializer. Have you tried specifying your serializer_class ?
With the built-in DRF documentation generator, you have to put your docstrings at the class level and enable the request method as such:
class ActivateCustomerView(APIView): """ post: View dedicated to activating a pre-recorded customer # Should I add some parameters here? # if you have a get request get: # your docs for the get handler """ permission_classes = (AllowAny,) def post(self, request): serializer = ActivateCustomerSerializer(data=request.data) serializer.is_valid(raise_exception=True)
source share