0% found this document useful (0 votes)
2 views

Node js Practical Question

The document outlines the practical implementation of REST APIs, including user signup, login, profile viewing, fetching a random joke, and user logout. It specifies requirements such as using a NodeJs framework, libraries for validation, ORM for data management, and user authentication, along with error handling and middleware for restricted access. Additionally, it instructs to commit the code on GitHub, provide a README file with setup instructions, and attach a Postman collection for testing the APIs.

Uploaded by

ON gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Node js Practical Question

The document outlines the practical implementation of REST APIs, including user signup, login, profile viewing, fetching a random joke, and user logout. It specifies requirements such as using a NodeJs framework, libraries for validation, ORM for data management, and user authentication, along with error handling and middleware for restricted access. Additionally, it instructs to commit the code on GitHub, provide a README file with setup instructions, and attach a Postman collection for testing the APIs.

Uploaded by

ON gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

------------------------------------------------------------------------------------------

REST APIs - Practical


------------------------------------------------------------------------------------------

1. User signup - /api/users/signup

2. User login - /api/users/login

# Access by authenticated user only


---------------------------------------
3. View profile - /api/users/me

4. Get a random joke from chuck norris api & return it back - /api/random-joke
GET https://api.chucknorris.io/jokes/random

5. User logout - /api/users/logout

# Requirements:
------------------
Use any famous :-
1. NodeJs Framework
2. NodeJs library to validate & sanitize request
3. ORM library to manage data with database
4. Package to handle user authentication

5. Globally handle errors


6. Use middlware to access restricted end points

# Notes:
-----------------------------------
1. Commit the code on github & provide the link to review it
2. Add a readme file which has all the steps to run the project
3. Attach a postman collection to test the rest APIs ( You can use any postman alternative as well but just mention th
e steps)

You might also like