Seperate POST acccess urls for same resource

11 views
Skip to first unread message

Dhanushka Amarakoon

unread,
Jan 15, 2016, 2:22:45 PM1/15/16
to Tastypie

I need to create separate POST methods for user creation and user authentication


eg:http://localhost:8000/registerUser which takes email,name and password to register a user and another url

eg:http://localhost:8000/authenticateUser which takes the email and password to authenticate the user


Can I do this with by overriding "override_url" or the "dispatch" method ? Or any other way

Seán Hayes

unread,
Jan 15, 2016, 3:16:47 PM1/15/16
to Tastypie
I would create 2 separate resources, though I'm not sure what /authenticateUser is meant to do, REST APIs do authentication inside HTTP headers.
Reply all
Reply to author
Forward
0 new messages