AkashKoodali / Book-Record-Managment

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

book-record-management

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

API Documentation Link

https://documenter.getpostman.com/view/21611153/VUxKSUQB

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 uesr by id✅ (check if he/she still has an issue 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

// TODO TASK // 🏁 GET: Get all issued books with fine

Subscription Types

Basic (3 months) Standard (6 months) Premium (12 months)

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

If the subscription date is 01/08/22 and Subscription type is Standard the valid till date will be 01/02/23

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

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

About

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


Languages

Language:JavaScript 100.0%