-
Notifications
You must be signed in to change notification settings - Fork 4
Profile
olesh2602 edited this page Dec 18, 2019
·
5 revisions
| type | access | route prefix |
|---|---|---|
| Private | For authorized users | /profile |
| name | access | route | type | headers |
|---|---|---|---|---|
| User information | authorized | /getInformation | POST | Authorization: Bearer <access token> |
| Edit profile | authorized | /edit | POST | Authorization: Bearer <access token> |
| Change password | authorized | /changePassword | POST | Authorization: Bearer <access token> |
#Request
{}#Response
{
"user": "Object"
}Errors:
| name | description | error const |
|---|---|---|
#Request
{
"address": "String",
"name": "String",
}#Response
{
"id": "Number",
"name": "String",
"address": "String",
}Errors:
| name | description | error const |
|---|---|---|
#Request
{
"oldPassword": "String",
"newPassword": "String",
}#Response
{
"passwordWasChanged": "Boolean",
}Errors:
| name | description | error const |
|---|---|---|