Welcome to the CRUD API Project! This is a simple yet powerful RESTful API built with Node.js and Express, designed to manage user data efficiently. Whether you're learning API development or building a base for your next application, this project offers a clean, straightforward example of CRUD operations.
- Create Users: Add new users with
firstName
,lastName
, andage
. - Retrieve Users: Fetch a list of all users or details of a specific user by ID.
- Update Users: Modify user information including
firstName
,lastName
, andage
. - Delete Users: Remove users from the database by their ID.
- Node.js: JavaScript runtime for building scalable server-side applications.
- Express: Fast, unopinionated web framework for Node.js.
- UUID: Library for generating unique identifiers.
- Express Validator: Middleware for validating and sanitizing incoming data.
GET /users
- Retrieve all users.POST /users
- Create a new user.GET /users/:id
- Get user details by ID.DELETE /users/:id
- Delete a user by ID.PATCH /users/:id
- Update user details by ID.