Skip to content

Okemwag/invosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 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! ❤️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages