Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.42 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.42 KB

markdown Book Library API

Overview The Book Library API is a RESTful service built with ASP.NET Core that allows users to manage a book library. It supports basic CRUD operations for book management.

Technologies

  • C#
  • .NET 6
  • Entity Framework Core (In-memory database)
  • Swagger for API documentation
  • xUnit for unit testing

Getting Started

Prerequisites

Installation

  1. Clone the repository if uploaded on git or download zipfile
git clone https://github.com/PatriciaAI/BookLibrary.git
cd book-library-api
  1. Restore NuGet packages
dotnet restore
  1. Run the application
dotnet run

API Endpoints

  • GET /api/books - Retrieves all books
  • GET /api/books/{id} - Retrieves a specific book by ID
  • POST /api/books - Adds a new book
  • PUT /api/books/{id} - Updates an existing book
  • DELETE /api/books/{id} - Deletes a book

API Documentation Swagger UI is available at https://localhost:5001/swagger for interactive API documentation.

Running Tests To execute the unit tests:

dotnet test

Conclusion This Book Library API serves as a foundation for managing a book library and can be extended with additional features such as user authentication and book borrowing functionality.