My Profile
This endpoint retrieves the profile details of the authenticated user.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Responses
200
Successfully retrieved the user profile
400
Bad Request, user not authenticated or other errors
get
GET /backend/api/auth/get-profile HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully got the profile</message>
</object>
This endpoint allows the authenticated user to edit their profile details.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
usernamestringRequiredExample:
john_doe
phoneNumberstringRequiredExample:
+1234567890
emailstringRequiredExample:
[email protected]
addressstringOptionalExample:
123 Main St, Springfield
avatarstringOptionalExample:
http://example.com/avatar.jpg
Responses
200
Successfully updated the user profile
400
Bad Request, invalid input or missing fields
post
POST /backend/api/auth/edit-profile HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 160
"username='john_doe'&phoneNumber='+1234567890'&email='[email protected]'&address='123 Main St, Springfield'&avatar='http://example.com/avatar.jpg'"
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully updated the profile</message>
</object>
This endpoint allows the authenticated user to change their password.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
oldPasswordstringRequiredExample:
fsdfsfs43543
newPasswordstringRequiredExample:
Picco123@
Responses
200
Password successfully changed
400
Bad Request, invalid old password or other issues
put
PUT /backend/api/auth/change-password HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 56
"oldPassword='fsdfsfs43543'&newPassword='Picco123@'"
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Password successfully changed</message>
</object>
Last updated