Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.17 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.17 KB

📚 Books API

A simple RESTful API for managing books, built with Go and Gorilla Mux. 🚀

🌟 Features

  • 📝 CRUD Operations: Create, Read, Update, and Delete books.
  • ⚡ Lightweight and fast.
  1. The API will run on http://localhost:8080. 🎉

📖 API Endpoints

Base URL: http://localhost:8080

Method Endpoint Description
GET /books Get all books 📚
GET /books/{id} Get a book by ID 🔍
POST /books Create a new book ✍️
PUT /books/{id} Update a book 🔄
DELETE /books/{id} Delete a book ❌


🐳 Example Requests

Add a Book

curl -X POST http://localhost:8080/books \
-H "Content-Type: application/json" \
-d '{"title":"1984","author":"George Orwell","isbn":"111-222-333"}'

Get All Books

curl -X GET http://localhost:8080/books

📜 License

Licensed under the MIT License. ✨


👾 Contributions are welcome! Feel free to open issues or submit pull requests. 💻

Happy coding! ❤️