Skip to content

bkbCodes/LibraryManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Project

This is a book record management API Backend for the management of records and books

Routes and Endpoints

/users

POST: Create a new user ✅

GET: Get all list of users ✅

/users/{id}

GET: Get a user by id ✅

PUT: Update a user by id ✅

DELETE: Delete a user by id (check if he/she still has an issued book) (is there any fine to be paid) ✅

/users/subscription-details/{id}

GET: Get user subscription details ✅

  1. Date of subscription
  2. Valid till
  3. Fine if any

/books

GET: Get all books ✅

POST: Create/Add a new book ✅

/books/{id}

GET: Get a book by id ✅

PUT: Update a book by id ✅

/books/issued/by-user

GET: Get all issued books ✅

/books/issued/withFine

GET: Get all issued books with fine ✅

Subscription Types

Basic (3 months: 90 days) Standard (6 months: 180 days) Premium (12 months: 360 days)

NOTE: dates will be in format yyyy-mm-dd

If the subscription date is 2022-01-08 (8th Jan 2022) and Subscription type is Standard the valid till date will be 2022-07-08 (8th Jul 2022)

If he has an issued book and the issued book is to be returned at 2022-06-01 If he missed the date of return, then he gets a fine of Rs. 100./

If he has an issued book and the issued book is to be returned at 2022-06-01 If he missed the date of return, and his subscription also expires, then he will get a fine of Rs 200./

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published