Admin

Create a new user

POST /users

Get user profile details

get
/auth/get-profile

This endpoint retrieves the profile details of the authenticated user.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved the user profile

*/*
statusintegerOptional
messagestringOptional
get
/auth/get-profile

Edit user profile

post
/auth/edit-profile

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
chevron-right
200

Successfully updated the user profile

*/*
statusintegerOptional
messagestringOptional
post
/auth/edit-profile

User login

post
/auth/login

This endpoint allows a user to log in by providing their username and password.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
usernamestringRequiredExample: user123
passwordstringRequiredExample: securepassword123
Responses
chevron-right
200

Login successful

*/*
statusintegerOptional
messagestringOptional
post
/auth/login

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

Response

Last updated