Skip to content

kombate1/REST_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview: This project is a Node.js application built using Express to retrieve user data from a JSON file through a RESTful API. The main objectives of the project were to practice using the fs module for reading JSON files, creating and testing Express routes, and building a REST API. I learned how to parse a json fill into Express and how to retrieve data using various endpoints.

Testing Screenshots: 1.Get all users List All Users 2. Get users by id Get User by ID 3. Get users by profession Get Users by Profession 4. Get users by Name Get User by Name

Discussion: Working on this project was a great learning experience in building RESTful APIs with Node.js and Express. I learned how to efficiently read data from JSON files using the fs module and how to create dynamic routes for retrieving specific user information. It also deepened my understanding of error handling and setting up a development environment for API testing since I spent most of the time dealing with errors faced when reading from the json and the use of Middlewares.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published