Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 683 Bytes

File metadata and controls

35 lines (29 loc) · 683 Bytes

Simple CRUD API

This project implements a basic CRUD (Create, Read, Update, Delete) REST API using Node.js and Express.

Features

  • Create a user
  • Read all users
  • Read user by ID
  • Update user details
  • Delete a user

Technologies Used

  • Node.js
  • Express.js
  • Postman

How to Run

  1. Install dependencies:
    npm install
  2. Start the Server
    node index.js
  3. Server runs at : http://localhost:4000

API Endpoints:

  • POST /users – Create user
  • GET /users – Get all users
  • GET /users/:id – Get user by ID
  • PUT /users/:id – Update user
  • DELETE /users/:id – Delete user

Testing

All API endpoints were tested using Postman.