Admin
Create a new user
This endpoint retrieves the profile details of the authenticated user.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Responses
200
Successfully retrieved the user profile
*/*
statusintegerOptional
messagestringOptional
400
Bad Request, user not authenticated or other errors
*/*
get
/auth/get-profileThis 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
*/*
statusintegerOptional
messagestringOptional
400
Bad Request, invalid input or missing fields
*/*
post
/auth/edit-profileThis endpoint allows a user to log in by providing their username and password.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
usernamestringRequiredExample:
user123passwordstringRequiredExample:
securepassword123Responses
200
Login successful
*/*
statusintegerOptional
messagestringOptional
400
Invalid login credentials
*/*
post
/auth/loginName
Value
Name
Type
Description
Last updated