Skip to content

Latest commit

Β 

History

History
47 lines (34 loc) Β· 1.82 KB

File metadata and controls

47 lines (34 loc) Β· 1.82 KB

Library Management System API

This is a RESTful API for a simple library management system, developed as a portfolio project to demonstrate proficiency in Java and Spring Boot.

πŸš€ Features

  • Create: Add a new book to the library database.
  • Retrieve: Get a list of all books or fetch a single book by its ID.
  • Update: Modify the details of an existing book.
  • Delete: Remove a book from the database.

πŸ’» Technologies Used

  • Java 17: The core programming language.
  • Spring Boot 3: The framework for building the API.
  • Spring Data JPA: For database interaction and object-relational mapping.
  • H2 Database: An in-memory database used for development and testing.
  • Maven: The build automation and dependency management tool.
  • RESTful API: The architectural style used for the web services.

πŸ› οΈ How to Run the Project

  1. Clone the repository:
    git clone [https://github.com/Aseem3004/library-management-system.git](https://github.com/Aseem3004/library-management-system.git)
  2. Open in Eclipse: Import the project as an Existing Maven Project.
  3. Run the application: In Eclipse, right-click the LibraryManagementSystemApplication.java file and select Run As > Spring Boot App.
  4. The application will start on port 8081.

πŸ“Œ API Endpoints

Use a tool like Postman to test the following endpoints:

Method URL Description
POST /api/books Creates a new book record.
GET /api/books Retrieves all books.
GET /api/books/{id} Retrieves a single book by its ID.
PUT /api/books/{id} Updates an existing book.
DELETE /api/books/{id} Deletes a book by its ID.

Author