Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.23 KB

api-map.md

File metadata and controls

19 lines (16 loc) · 1.23 KB

API Inventory (Service Methods)

This application exposes internal Java Service methods rather than external HTTP APIs.

Authentication Service (AuthService)

Method Signature Purpose Returns Used By
register(String username, String password, String role) Create new user account User Main.handleRegister
login(String username, String password) Validate credentials User Main.handleLogin

Library Service (LibraryService)

Method Signature Purpose Returns Used By
addNewBook(Book book) Admin function to save a new book void Main.addBook
getAllBooks() Retrieve all books List<Book> Main.viewAllBooks
searchBooks(String keyword) Search title/author List<Book> Main.searchBooks
issueBook(int userId, int bookId) Student checks out a book (complex logic) void (Throws LibraryException) Main.issueBook
returnBook(int issueId) Student returns a book void (Throws LibraryException) Main.returnBook
getStudentIssues(int userId) Retrieve a student's borrowed books List<IssueRecord> Main.viewMyIssues