Simple REST API using Node.js and Express to manage a list of books.
No database used — books are stored in memory.
- View all books
- Add a new book
- Update an existing book
- Delete a book
- Node.js
- Express.js
- Postman (for testing)
Method | Endpoint | Description |
---|---|---|
GET | /books | Get all books |
POST | /books | Add a new book |
PUT | /books/:id | Update book by ID |
DELETE | /books/:id | Delete book by ID |
Completed on 29th May 2025
npm install
node index.js
# REST-API-using-Node.js-Express