📚 Book Store API

Welcome to the Book Store API — your RESTful backend for managing books, authors, and users.

Books

GET /api/books → Get all books
GET /api/books/{id} → Get book by ID
POST /api/books/addBook → Add book to DB
PATCH /api/books/update/{id} → Edit book & save to DB
DELETE /api/books/delete/{id} → Delete book from DB

Authors

GET /api/authors → Get all authors
GET /api/authors/{id} → Get author by ID
POST /api/authors → Add author to DB
PUT /api/authors/{id} → Edit author & save to DB
DELETE /api/authors/{id} → Delete author from DB

Users

POST /api/u/register → Register new user
POST /api/u/login → Login with credentials
GET /api/u/me → View profile (requires JWT)

Built with ❤️ using Node.js, Express, and MongoDB.