In this task we can sign up, login, and see the userdetails, userlist only when you are authorized and authorization done by Json web token.
GET /api/fetchuserdetails
Parameter | Type | Description |
---|---|---|
username |
string |
Required. http://localhost:3000/api/fetchuserdetails |
GET /api/userlist
Parameter | Type | Description |
---|---|---|
authorized |
string |
Required. http://localhost:3000/api/fetchuserlist |
POST /api/createuser/
Parameter | Type | Description |
---|---|---|
username,name,password |
string |
Required. http://localhost:3000/api/createuser/ |
POST /api/login/
Parameter | Type | Description |
---|---|---|
username,password |
string |
Required. http://localhost:3000/api/login/ |
Clone the project
git clone https://github.com/Rishabhg-rgb/wobot-intelligence.git
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm start
- Signup
- Login
- User list
- User details