Skip to content

AminaHasanaath/LibraryManagementAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Library Management API

A simple Spring Boot backend application that lets users manage books using CRUD operations.


🚀 Description

This is a backend project built using Spring Boot.
It allows users to manage books by performing Create, Read, Update, and Delete (CRUD) operations via REST APIs.


🧠 Features

  • Add a new book
  • Get all books
  • Get book by ID
  • Update book details
  • Delete a book

🛠 Tech Stack

  • Java
  • Spring Boot
  • Spring Data JPA
  • H2 Database (in‑memory)
  • Postman (for testing the APIs)

🔄 API Endpoints

Action Method Endpoint
Add Book POST /books
Get All Books GET /books
Get Book by ID GET /books/{id}
Update Book PUT /books/{id}
Delete Book DELETE /books/{id}

⚙️ How to Run

  1. Clone the project
    git clone https://github.com/AminaHasanaath/library-management-api.git
  2. Open the project in IntelliJ IDEA
  3. Run the main Spring Boot class (@SpringBootApplication)
  4. Use Postman or any API client to test the endpoints

💡 What I Learned

  • Backend flow: Controller → Service → Repository → Database
  • Building RESTful APIs using Spring Boot and Spring Data JPA
  • Common annotations like @RestController, @Entity, @Repository
  • How JSON ↔ Java object mapping works via Jackson

📌 Author

Amina Hasanaath
🌱 Aspiring AI Backend Engineer building scalable systems with Java and Spring Boot

Releases

Packages

Contributors

Languages