diff --git a/apiserver/docs/source/api.rst b/apiserver/docs/source/api.rst index 4200f58..45fa779 100644 --- a/apiserver/docs/source/api.rst +++ b/apiserver/docs/source/api.rst @@ -191,6 +191,41 @@ Change Password {"detail":"New password has been saved."} +Reset Password +++++++++++++++ + +.. http:post:: /rest-auth/password/reset/ + + :json email: + + **Example response**: + + .. sourcecode:: json + + {"detail":"Password reset e-mail has been sent."} + + +Confirm Reset ++++++++++++++ + +.. http:post:: /rest-auth/password/reset/confirm/ + + The uid and token are found in the email sent: + + ``/password-reset/confirm/{uid}/{token}/`` + + :json uid: + :json token: + :json new_password1: + :json new_password2: + + **Example response**: + + .. sourcecode:: json + + {"detail":"Password has been reset with the new password."} + + Members ------- diff --git a/apiserver/docs/source/apioverview.rst b/apiserver/docs/source/apioverview.rst index 1773252..b3aa0fa 100644 --- a/apiserver/docs/source/apioverview.rst +++ b/apiserver/docs/source/apioverview.rst @@ -40,6 +40,8 @@ Quick Reference .. http:post:: /rest-auth/login/ .. http:get:: /user/ .. http:post:: /password/change/ +.. http:post:: /rest-auth/password/reset/ +.. http:post:: /rest-auth/password/reset/confirm/ .. http:get:: /members/(id)/ .. http:post:: /members/ .. http:patch:: /members/(id)/