Public
Documentation Settings

NextMart

User

POSTRegister User

http://localhost:3001/api/v1/user/
Bodyraw (json)
json
{
  "email": "fahim@mail.com",
  "password": "123456",
  "name": "Fahim Ahammed Firoz"
}
Example Request
curl
curl --location 'http://localhost:3001/api/v1/user/' \
--data-raw '{
  "email": "fahim@mail.com",
  "password": "123456",
  "name": "Fahim Ahammed Firoz"
}
'
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

customer

sort

-createdAt

page

1

limit

100

searchTerm

fahim

email

fahim1@ph.com

name

Fahim

fields

name,email,hasShop

Example Request
curl
curl --location 'http://localhost:3001/api/v1/user?page=1&limit=100&fields=name%2Cemail%2ChasShop' \
--header 'Authorization;'
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
curl
curl --location 'http://localhost:3001/api/v1/user/me' \
--header 'Authorization;'
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

{ "phoneNo": "01234567890", "gender": "Male", "dateOfBirth": "1995-05-15", "address": "123, Some Street, Some City, Country" }

profilePhoto
Example Request
curl
curl --location --request PATCH 'http://localhost:3001/api/v1/user/update-profile' \
--header 'Authorization;' \
--form 'data="
{
  \"phoneNo\": \"01234567890\",
  \"gender\": \"Male\",
  \"dateOfBirth\": \"1995-05-15\",
  \"address\": \"123, Some Street, Some City, Country\"
}
"' \
--form 'profilePhoto=@"/Users/fahimahammedfiroz/Downloads/IMG_20220713_085641_525 (2).jpg"'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers