Skip to content

3oss1337/BookManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Management API

A simple, lightweight RESTful API built with Go and the Gin web framework to manage a collection of books stored directly in memory. The API supports full CRUD operations, proper validation, error handling, and custom middleware for logging and request timeouts.

🚀 Features 📖 View all books or a specific book by ID

➕ Add new books

✏️ Update existing books

❌ Delete books

🧠 Input validation with clear error responses

📦 In-memory storage using map[int]Book

📃 Request logging middleware

⏱️ Timeout middleware using context.WithTimeout

🛠️ Technology Stack Language: Go

Framework: Gin

🧱 How to Run the Project 📦 Prerequisites: Go installed

🔧 Steps: Clone the repository: git clone https://github.com/your-username/book-management-api.git cd book-management-api

Download dependencies: go mod tidy

Run the server: go run ./cmd/server Visit http://localhost:8000/books to test the API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages