This project is a simple REST API built using Node.js and Express.js. It supports basic CRUD operations (Create, Read, Update, Delete) on sample book data.
- GET-- Fetch all books
- POST -- Add a new book
- PUT -- Update a book
- DELETE-- Remove a book
npm install
Development:
npm run dev
Production:
npm start
GET- /api/book (Get all books)
POST- /api/book (Create new book)
PUT- /api/book/:id (Update a book)
DELETE- /api/book/:id (Delete a book)
node_modulesis not included in this project.- After cloning or downloading, run npm install to restore dependencies.