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
/auth/get-profileGET /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_doephoneNumberstringRequiredExample:
+1234567890emailstringRequiredExample:
[email protected]addressstringOptionalExample:
123 Main St, SpringfieldavatarstringOptionalExample:
http://example.com/avatar.jpgResponses
200
Successfully updated the user profile
400
Bad Request, invalid input or missing fields
post
/auth/edit-profilePOST /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:
fsdfsfs43543newPasswordstringRequiredExample:
Picco123@Responses
200
Password successfully changed
400
Bad Request, invalid old password or other issues
put
/auth/change-passwordPUT /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