Build an API for a library to manage its catalogue, rentals and returns.
Build an API for a library to manage its catalogue, rentals and returns.
This Library Management API is designed to help a library manage its resources, including books, authors, and borrowing activities. You can implement the API using any preferred technology, enabling library administrators to efficiently add, update, and delete records, track borrowed books, and manage author information.
No submissions yet, start by making your first submission
This Library Management API is designed to help a library manage its resources, including books, authors, and borrowing activities. You can implement the API using any preferred technology, enabling library administrators to efficiently add, update, and delete records, track borrowed books, and manage author information.
Author Endpoints:
POST /authors
: Add a new author to the library's catalog.GET /authors/:authorId
: Retrieve details of a specific author.GET /authors/:authorId/books
: List all books associated with a specific author.Book Endpoints:
POST /books
: Add a new book to the catalog.GET /books
: Retrieve a list of all books in the library.GET /books/:bookId
: View details of a specific book.PUT /books/:bookId
: Update a book’s information.DELETE /books/:bookId
: Remove a book from the catalog.GET /books/search?title=<title>
: Search for books by title.Borrowing and Returning:
POST /borrow
: Record a borrowed book and update its availability.POST /return
: Mark a book as returned, restoring its availability in the catalog.This project is a practical exercise in building a resource management API, with a focus on CRUD operations, data validation, and efficient catalog management.