Skip to content

charanepuri/node-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Node.js REST API – User Management

📌 Description

This project is a Basic REST API built using Node.js and Express.js as part of my Full Stack Development Internship at SaiKet Systems.

The API performs CRUD operations on a User entity and was tested using Postman.


🛠️ Tech Stack

  • Node.js
  • Express.js
  • JavaScript (ES6)
  • Postman (API Testing)

✨ Features

  • ➕ Create User
  • 📄 Get All Users
  • ✏️ Update User
  • ❌ Delete User
  • ✅ Input validation
  • 📊 Proper HTTP status codes
  • ⚠️ Error handling

📂 Project Structure

node-rest-api/ │── controllers/ │ └── userController.js │── routes/ │ └── userRoutes.js │── models/ │── server.js │── package.json │── .gitignore │── README.md │── screenshots

🔗 API Endpoints

📄 Get All Users

GET /api/users


➕ Create User

POST /api/users

Body (JSON):

{
  "name": "Charan",
  "email": "charan@gmail.com",
  "age": 22
}

✏️ Update User

PUT /api/users/:id


❌ Delete User

DELETE /api/users/:id


⚙️ Installation & Setup

  1. Clone the repository
  2. Navigate to project folder
  3. Install dependencies
  4. Run the server

🧪 Testing

API endpoints were tested using Postman.


📸 API Testing (Postman)

➕ Create User

Create User

📄 Get Users

Get Users

✏️ Update User

Update User

❌ Delete User

Delete User

📌 Learning Outcomes

  • Understanding REST API architecture
  • Working with Express routing
  • Handling HTTP methods (GET, POST, PUT, DELETE)
  • Implementing validation and error handling
  • Testing APIs using Postman

👨‍💻 Author

Charan Teja Epuri


📢 Internship

This project is part of my internship tasks at SaiKet Systems.

#SaiKetSystemsJourney #SaiKetExperience #SaiKetProjects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages