Skip to content

PatriciaAI/BookLibrary

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages