Skip to content

devilvijay/library_management_system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System

ROUTES

Student and Teachers Register

URL--https://librarymanagement4.herokuapp.com/auth/signup POST

Req params-  { 
"name": "name of user--string", "email": "email of user -- string", "phone_no": "mob no -- string", "password": "password -- string", "reg_no": "reg no -- string", "gender": "gender -- string", "type": "student or teacher --string" } res--> JWT token with user deatils

Student and Teacher Login

URL- https://librarymanagement4.herokuapp.com/auth/signin POST

Req params - {
      "email" - "Email of the user",
      "password" - "password provided at the time of registration
}
Res- JWT token with user deatils

Find Student by name

URL- https://librarymanagement4.herokuapp.com/findstudent GET

Req params - {
       "search" -- "Search Key name of student"
}
with JWT token for authentication
Res- Deatils of student or None received

List all Students

URL- https://librarymanagement4.herokuapp.com/AllStudents GET

Req params -- none with JWT token passed
Res -- We will get all students present in the database

CRUD operations on books

Add book by teacher only

URL- https://librarymanagement4.herokuapp.com/addBook GET

Req params -{
   "title" : "Tite of the book --string",
   "ISBN" : "unique ISBN number --string",
   "stock" : no of books in stock --number,
   "author" : "Author of the book -- string",
   "description" : "Description of the book -- string",
   "category" : "Category book belongs to -- string" 
}
Res - Book is Added Successfully

Update book Details by teacher only

URL -https://librarymanagement4.herokuapp.com/updateBook POST

Req params -{
   "title" : "Tite of the book --string",
   "ISBN" : "unique ISBN number --string",
   "stock" : no of books in stock --number,
   "author" : "Author of the book -- string",
   "description" : "Description of the book -- string",
   "category" : "Category book belongs to -- string" 
}
Res - Book is Updated Successfully

Delete Book by teacher Only

URL- https://librarymanagement4.herokuapp.com/deleteBook GET

Req params -{
   "title" : "Tite of the book --string",
   "ISBN" : "unique ISBN number --string",
   "stock" : no of books in stock --number,
   "author" : "Author of the book -- string",
   "description" : "Description of the book -- string",
   "category" : "Category book belongs to -- string" 
}
Res- Book deleted Successfully

Get All Books

URL - https://librarymanagement4.herokuapp.com/getAllbooks GET

Req params- Null
Res- Returns All Books present in the database

ISSUE A BOOK BY STUDENT

URL - https://librarymanagement4.herokuapp.com/issueBook POST

Req params - {
    "ISBN" : "ISBN no of the book to be issued"
}
Res- Book is being successfuly Issued

RENEW A BOOK

URL - https://librarymanagement4.herokuapp.com/renewBook POST

Req params - {
    "ISBN" : "ISBN no of the book to be issued"
}
Res- Book is renewed for 7 days Successfully

Fine calculated after 7 days

URL - https://librarymanagement4.herokuapp.com/fine POST

Req params-- Null with Jwt token for user
Res - fine has being successfully calculated and updated

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published