A project learning from Le Reacteur to rebuid the backend using REST API for Vinted, a website where we can buy, sell, or trade clothes, shoes and accessories !
The frontend connecting to this project.
To keep "learning by doing" I also build some new route for User in order for them to update profile, delete the account, update the password and the possibility to Reset the password.
Get user
Headers | Required | Description |
---|---|---|
Bearer token |
Yes | user token |
Edit user
Body | Type | Required |
---|---|---|
username |
string | No |
avatar |
image | No |
newsletter |
boolean | No |
Headers | Required | Description |
---|---|---|
Bearer token |
Yes | user token |
Edit User Password
Body | Type | Required |
---|---|---|
oldPassword |
string | Yes |
newPassword |
string | Yes |
Headers | Required | Description |
---|---|---|
Bearer token |
Yes | user token |
Delete User
Headers | Required | Description |
---|---|---|
Bearer token |
Yes | user token |
Request reset password
Body | Type | Required |
---|---|---|
email |
string | Yes |
This route can be used to check and validate before sending a reset password page to user.
Param | Required | Description |
---|---|---|
id |
Yes | User id |
token |
Yes | User token |
Reset user password
Body | Type | Required |
---|---|---|
password |
string | Yes |
confirmPassword |
string | Yes |
Param | Required | Description |
---|---|---|
id |
Yes | User id |
token |
Yes | User token |