-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#168049945 Users should be able to view and edit their profiles (#15)
* feature(user-profile): add view and edit profile - user can view and edit his/her profile [Finish #168049945]
- Loading branch information
1 parent
9796a28
commit c8819d5
Showing
74 changed files
with
1,574 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"id": 5, | ||
"firstname": "firstname", | ||
"lastname": "user", | ||
"email": "requester@request.com", | ||
"username": "requesting", | ||
"is_verified": true, | ||
"role_value": 1, | ||
"phone": null, | ||
"gender": "Male", | ||
"dob": null, | ||
"address": null, | ||
"country": null, | ||
"language": null, | ||
"currency": null, | ||
"image_url": "https://avatars0.githubusercontent.com/u/11447549?s=460&v=4", | ||
"company": null, | ||
"department": null, | ||
"line_manager": "manager@admin.com", | ||
"isEmailAllowed": "true", | ||
"createdAt": "2019-10-11T10:50:28.214Z", | ||
"updatedAt": "2019-11-12T09:49:06.152Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"status": 400, | ||
"response": { | ||
"data": { | ||
"status": 400, | ||
"error": "User id must be an Integer" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"status": 200, | ||
"response": { | ||
"data": { | ||
"status": 200, | ||
"message": "User found!", | ||
"data": { | ||
"id": 5, | ||
"firstname": "firstname", | ||
"lastname": "user", | ||
"email": "requester@request.com", | ||
"username": "requesting", | ||
"is_verified": true, | ||
"role_value": 1, | ||
"phone": null, | ||
"gender": "Male", | ||
"dob": null, | ||
"address": null, | ||
"country": null, | ||
"language": null, | ||
"currency": null, | ||
"image_url": "https://avatars0.githubusercontent.com/u/11447549?s=460&v=4", | ||
"company": null, | ||
"department": null, | ||
"line_manager": "manager@admin.com", | ||
"isEmailAllowed": "true", | ||
"createdAt": "2019-10-11T10:50:28.214Z", | ||
"updatedAt": "2019-11-12T09:49:06.152Z" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"status": 400, | ||
"response": { | ||
"data": { | ||
"status": 400, | ||
"errors": [ | ||
"genders is not allowed" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"status": 200, | ||
"response": { | ||
"data": { | ||
"status": 200, | ||
"message": "Profile Updated!", | ||
"data": { | ||
"gender": "Male" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
export const loginPayload = { | ||
token: 'test token', | ||
user: { email: 'test user' } | ||
} | ||
token: "test token", | ||
user: { email: "test user" }, | ||
}; | ||
|
||
export const payload = { | ||
status: 20, | ||
message: "Sign up the", | ||
data: { | ||
id: 28, | ||
email: "amilylisy@yahoo.com", | ||
firstname: "amily", | ||
lastname: "kassim", | ||
role_value: 1, | ||
username: "amilykassim", | ||
}, | ||
token: "eyJhbGcibK-l8Ic4", | ||
}; | ||
status: 20, | ||
message: "Sign up the", | ||
data: { | ||
id: 28, | ||
email: "amilylisy@yahoo.com", | ||
firstname: "amily", | ||
lastname: "kassim", | ||
role_value: 1, | ||
username: "amilykassim", | ||
}, | ||
token: "eyJhbGcibK-l8Ic4", | ||
}; | ||
|
||
export const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAsImZpcnN0bmFtZSI6IkZyZWQiLCJsYXN0bmFtZSI6Ik11Y3lvIiwiZW1haWwiOiJtdWN5b21pbGxlckBnbWFpbC5jb20iLCJ1c2VybmFtZSI6bnVsbCwiaXNfdmVyaWZpZWQiOnRydWUsInJvbGVfdmFsdWUiOjEsInBob25lIjpudWxsLCJnZW5kZXIiOiJNYWxlIiwiZG9iIjoiMTk5NC0wNS0wMlQwMDowMDowMC4wMDBaIiwiYWRkcmVzcyI6Im51bGwiLCJjb3VudHJ5IjoibnVsbCIsImxhbmd1YWdlIjoibnVsbCIsImN1cnJlbmN5IjoibnVsbCIsImltYWdlX3VybCI6Imh0dHA6Ly9yZXMuY2xvdWRpbmFyeS5jb20vdGVjaG5pdGVzL2ltYWdlL3VwbG9hZC92MTU3MzgwODYzNy9tdHd3a2ExZHh0aWVrd3Nncmlvai5qcGciLCJjb21wYW55IjoiQW5kZWxhIiwiZGVwYXJ0bWVudCI6IkVuZ2luZWVyaW5nIiwibGluZV9tYW5hZ2VyIjoicnVndW1iaXJham9yZHliYXN0aWVuQGdtYWlsLmNvbSIsImlzRW1haWxBbGxvd2VkIjoidHJ1ZSIsImlhdCI6MTU3MzgwODg1NiwiZXhwIjoxNTczODk1MjU2fQ._fvFcTCo7YdJ1yL_X_iVFOrby5k5b3bcrOb0f9DQpEo"; |
Oops, something went wrong.