Duck Cart
Users
POSTSign Up
http://127.0.0.1:3000/user/signup
- This end point allows to sign up the user
- This accepts
#Name
#username
#password
#Confirm Password
#Role of the user (only accepts creator, user)
#Profile URL
Bodyraw (json)
Example Request
Sign Up
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
POSTLogin
http://127.0.0.1:3000/user/login
- This endpoint allows you to login
- This route accepts
#Username
#Password - Also you have to send the JWT token as bearer token
- This route send back
#JWT token
#Data of the user
Bodyraw (json)
Example Request
Login
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers