Compare commits
5 Commits
edaff66508
...
cfb5cede83
| Author | SHA1 | Date | |
|---|---|---|---|
| cfb5cede83 | |||
| 619d5db87a | |||
| d9eacb74c1 | |||
| 8b57719a52 | |||
| f07a653bc3 |
@@ -10,7 +10,7 @@ Task 1: Oct 18 2021
|
|||||||
|
|
||||||
- Login screen takes email and password. Do all the basic validation on client side and display proper error message if theres error from the API. Display the error message either in toast, custom dialog or native alert. API endpoint is https://reacttask.mkdlabs.com/v2/api/lambda/login. Request body are email, password. Look at the request below.
|
- Login screen takes email and password. Do all the basic validation on client side and display proper error message if theres error from the API. Display the error message either in toast, custom dialog or native alert. API endpoint is https://reacttask.mkdlabs.com/v2/api/lambda/login. Request body are email, password. Look at the request below.
|
||||||
|
|
||||||
- Register screen takes email, password, first_name, last_name(and code for this VOYD app). Validation similar to Login screen should be applied. API endpoint is https://reacttask.mkdlabs.com/member/api/register. Call register api first for email, role and password. Then call https://reacttask.mkdlabs.com/v2/api/lambda/profile to save first_name and last_name and code.
|
- Register screen takes email, password, first_name, last_name(and code for this VOYD app). Validation similar to Login screen should be applied. API endpoint is https://reacttask.mkdlabs.com/lambda/api/register. Call register api first for email, role and password. Then call https://reacttask.mkdlabs.com/v2/api/lambda/profile to save first_name and last_name and code.
|
||||||
|
|
||||||
- Forgot password screen should ask for email. Read the forgot api below.
|
- Forgot password screen should ask for email. Read the forgot api below.
|
||||||
|
|
||||||
@@ -53,12 +53,13 @@ Response
|
|||||||
https://reacttask.mkdlabs.com/v2/api/lambda/register
|
https://reacttask.mkdlabs.com/v2/api/lambda/register
|
||||||
Method POST
|
Method POST
|
||||||
content-type application/json
|
content-type application/json
|
||||||
x-project cmVhY3R0YXNrOjVmY2h4bjVtOGhibzZqY3hpcTN4ZGRvZm9kb2Fjc2t5ZQ==
|
x-project cmVhY3R0YXNrOmQ5aGVkeWN5djZwN3p3OHhpMzR0OWJtdHNqc2lneTV0Nw==
|
||||||
body
|
body
|
||||||
{
|
{
|
||||||
"email": "member@manaknight.com",
|
"email": "member@manaknight.com",
|
||||||
"password": "a123456",
|
"password": "a123456",
|
||||||
"role": "member"
|
"role": "member",
|
||||||
|
"is_refresh": false
|
||||||
}
|
}
|
||||||
Response
|
Response
|
||||||
{
|
{
|
||||||
@@ -80,8 +81,10 @@ Authorization Bearer <token>
|
|||||||
x-project cmVhY3R0YXNrOjVmY2h4bjVtOGhibzZqY3hpcTN4ZGRvZm9kb2Fjc2t5ZQ==
|
x-project cmVhY3R0YXNrOjVmY2h4bjVtOGhibzZqY3hpcTN4ZGRvZm9kb2Fjc2t5ZQ==
|
||||||
body
|
body
|
||||||
{
|
{
|
||||||
"first_name": "<update>",
|
"payload": {
|
||||||
"last_name": "<update>"
|
"first_name": "<update>",
|
||||||
|
"last_name": "<update>"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Response
|
Response
|
||||||
{
|
{
|
||||||
@@ -105,7 +108,8 @@ Response
|
|||||||
{
|
{
|
||||||
"error": false,
|
"error": false,
|
||||||
"message": "message",
|
"message": "message",
|
||||||
"code" : "<code>"
|
"code" : "<code>",
|
||||||
|
"token": "<token>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user