/auth

post

Login to salesman and retrieve access tokens

post

Reset a user's password, sends e-mail to a user if the user is verified

get

Hit the link/url received in reset password api and system will send a new password to user

/users

post

Create a new user or signup

get

Get the details of a user

put

Change details of a user, A user can only change his name

delete

Delete a user

get

Verify a user's e-mail using the link received in the e-mail

put

Change a user's password only

post

Upload a photo for a user

get

Get shopping history of a user

/categories

get

Get all categories

post

Create a new category

get

Get one category by category id

put

Create a new category

delete

Delete one category by category id

/products

post

Create a new product (categoryId is required field)

put

Change details of a product

delete

Delete a product based on product id