This is a book record management API Backend for the management of records and books
POST: Create a new user ✅
GET: Get all list of users ✅
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) ✅
GET: Get user subscription details ✅
- Date of subscription
- Valid till
- Fine if any
GET: Get all books ✅
POST: Create/Add a new book ✅
GET: Get a book by id ✅
PUT: Update a book by id ✅
GET: Get all issued books ✅
GET: Get all issued books with fine ✅
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./