Just a Node native server with routes for endpoint that permits.
- User Registration
- Admin Add book
- Admin Delete Book
- Admin delete user
- Admin Update a Book in the library.
- User Access books
- User Request/ lend Book and user borrowed status is updated
- books (with methods - post, get, put and delete)
- user (with methods - post, get and delete)
- request ( request book)
- reqturn ( returns books)
User Input format:: { "fullname": "Emmanuel Mba", "email" : "emmy@gmail.com", "dob" : "29-10-1990", "address" : "No 23, Ezi Akani, Ukpa, Ehugbo", "phone" : "07063516620", "role" : "user" }
PS: User borrowed and userid prop is added from the code
NB: Admin can't be registered :::
Book Input Format:::
{ "name": "nodejs HardCore", "author": "Harmes Diaz", "price": 4400, "isbn" : "234-5050-33", "publisher": "Microsoft", "copies" : 5 }
Users and Admin are authenicated through the header.
The fileName is used and their unique Identification for authentication.