A complete REST API workshop materials featuring a Bookstore API built with Node.js, Express.js, and tested with Postman.
This repository contains all the materials from the "Build Your First REST API" workshop hosted by GDG on Campus Batna. Participants learned REST API fundamentals by building a functional Bookstore API from scratch.
A fully functional Bookstore REST API with:
- CRUD Operations (Create, Read, Update, Delete)
- RESTful endpoints following best practices
- Proper HTTP status codes and error handling
- JSON responses with consistent structure
| Method | Endpoint | Description |
|---|---|---|
GET |
/books |
Get all books |
GET |
/books/:id |
Get specific book |
POST |
/books |
Create new book |
PUT |
/books/:id |
Update book |
DELETE |
/books/:id |
Delete book |
- Node.js (v14 or higher)
- npm or yarn
- Postman (for testing)
# Clone the repository
git clone https://github.com/Lak-MedRida027/REST-API-Workshop.git
# Navigate to project
cd REST-API-Workshop
# Install dependencies
npm install
# Start the server
npm run start