NextMart
User
POSTRegister User
http://localhost:3001/api/v1/user/
Bodyraw (json)
Example Request
Register User
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETGet All User
http://localhost:3001/api/v1/user?page=1&limit=100&fields=name,email,hasShop
HEADERS
Authorization
PARAMS
role
sort
page
limit
searchTerm
email
name
fields
Example Request
Get All User
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETMy Profile
http://localhost:3001/api/v1/user/me
HEADERS
Authorization
Example Request
My Profile
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
PATCHUpdate My Profile
http://localhost:3001/api/v1/user/update-profile
HEADERS
Authorization
Bodyformdata
data
profilePhoto
Example Request
Update My Profile
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers