Hi, it's my first post so if I did something wrong please tell me.

I have problem with coreapi on restframework.

I have 

class UserAPI(viewsets.ModelViewSet):
    queryset = User.objects.all().filter(is_active=True)
with method
    @detail_route(methods=('post',))
    def set_password(self, request, pk=None):
       this method require request.data['password'] as new password and change 
it in some way



Other people in my team are using coreapi in order to use views, 
unfortunately coreapi returns views like this
set_password(us_id, or_id, here, goes, all, informations, about, user, all, 
of, them, [someopt1], [someopt2])
I want to make this method like
set_password(password)
nothing less nothing more. Is there any way of achieving this without 
making additional view for this one request?
Ideally I would love to write something like 

    @detail_route(methods=('post',), args=['password'])
    def set_password(self, request, pk=None):

Thanks in advance
Alex

-- 
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.

Reply via email to