Closed OlegKlimenko closed 7 years ago
URL: <host>/api/v1/send-mail/
<host>/api/v1/send-mail/
You send in: {"email": "<email_to_restore>"}
{"email": "<email_to_restore>"}
Success response:
{"status": 200, "detail": "successful", "data": {}}
Email not exists response:
{"status": 404, "detail": "not exists", "data": {}}
So when response is success you wrote that "restore instructions was sent on your email", when 404 you write that "user with this email not exists, please check email", other exceptions are unhandled error, or connection. We will test it later.
Create "restore data" API interaction
URL:
<host>/api/v1/send-mail/
You send in:
{"email": "<email_to_restore>"}
Success response:
Email not exists response:
So when response is success you wrote that "restore instructions was sent on your email", when 404 you write that "user with this email not exists, please check email", other exceptions are unhandled error, or connection. We will test it later.