I used to The autoogrnerated API docs(From the core of Django Rest framework).
For generation I use generics, viewsets, mixins.
Simple example:
users/ - Displayed in documentation
users/{id} - Displayed in documentation
users/personal-profile - Not displayed in documentation
class UserPersonalProfile(generics.RetrieveUpdateAPIView):
permission_classes = (permissions.IsAuthenticated,)
serializer_class = UserSerializer
queryset = User.objects.all()
def get_object(self):
return self.request.user
For the account does not work at all since there endpoints like:
/accounts/base-sign-up
/accounts/base-auth-token
/accounts/sn-auth-token
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.