2014-10-09 15:01:47 +04:00
API endpoints
=============
Basic
-----
2014-10-09 16:16:39 +04:00
- /rest-auth/login/ (POST)
2014-10-09 15:01:47 +04:00
- username (string)
2016-01-06 03:18:13 +03:00
- email (string)
2014-10-09 15:01:47 +04:00
- password (string)
2016-01-09 06:11:35 +03:00
- /rest-auth/logout/ (POST, GET)
.. note :: `` ACCOUNT_LOGOUT_ON_GET = True `` to allow logout using GET (this is the exact same conf from allauth)
2014-10-09 15:01:47 +04:00
2016-02-09 01:35:37 +03:00
- token
2014-10-09 16:16:39 +04:00
- /rest-auth/password/reset/ (POST)
2014-10-09 15:01:47 +04:00
- email
2014-11-12 12:33:29 +03:00
- /rest-auth/password/reset/confirm/ (POST)
2014-10-09 15:01:47 +04:00
- uid
- token
- new_password1
- new_password2
2014-10-09 16:16:39 +04:00
.. note :: uid and token are sent in email after calling /rest-auth/password/reset/
- /rest-auth/password/change/ (POST)
2014-10-09 15:01:47 +04:00
- new_password1
- new_password2
2015-05-22 22:47:06 +03:00
- old_password
2016-07-29 15:54:49 +03:00
- token
2015-10-18 07:20:50 +03:00
2015-05-22 22:58:40 +03:00
.. note :: `` OLD_PASSWORD_FIELD_ENABLED = True `` to use old_password.
2015-10-18 07:20:50 +03:00
.. note :: `` LOGOUT_ON_PASSWORD_CHANGE = False `` to keep the user logged in after password change
2014-10-09 15:01:47 +04:00
2014-10-09 16:16:39 +04:00
- /rest-auth/user/ (GET)
2014-10-09 15:01:47 +04:00
2014-10-09 16:16:39 +04:00
- /rest-auth/user/ (PUT/PATCH)
2014-10-09 15:01:47 +04:00
- username
- first_name
- last_name
- email
2016-07-29 15:54:49 +03:00
- token
2014-10-09 15:01:47 +04:00
Registration
------------
2014-10-09 16:16:39 +04:00
- /rest-auth/registration/ (POST)
- username
- password1
- password2
- email
2014-10-15 19:32:19 +04:00
- /rest-auth/registration/verify-email/ (POST)
2014-10-09 16:16:39 +04:00
- key
Social Media Authentication
---------------------------
Basing on example from installation section :doc: `Installation </installation>`
- /rest-auth/facebook/ (POST)
- access_token
2015-08-07 13:26:57 +03:00
- code
2016-02-23 14:48:30 +03:00
2016-10-25 00:23:44 +03:00
.. note :: `` access_token `` OR `` code `` can be used as standalone arguments, see https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/registration/views.py
2016-02-23 14:48:30 +03:00
- /rest-auth/twitter/ (POST)
- access_token
- token_secret