API Documentation
API Documentation
Get :
http://localhost:8080/users -> Get All Users
http://localhost:8080/users/user/{id} -> Get User By id
http://localhost:8080/users/{role}/{username}/{password} -> Get User By
Username & Password
http://localhost:8080/users/{username} -> Get User by Username
Put :
http://localhost:8080/user/{username}/{password} -> Update User Password
Del :
http://localhost:8080/user/{id} -> Get User by Id
Book Api
Get :
http://localhost:8080/books -> Get All Books
http://localhost:8080/books/{id} -> Get Book By id
http://localhost:8080/book/author/{author_id} -> Get Book by Author Id
http://localhost:8080/book/genre/{genre_id} -> Get Book By Genre Id
http://localhost:8080/book/publicationYear/{publicationYear} -> Get Book By
Publication Year
Put :
http://localhost:8080/books/update/{id} -> Update Book Data By Id
Post :
http://localhost:8080/books/add -> Add Book
Delete :
http://localhost:8080/books/{id} -> Delete Book By Id
Genre
Get :
http://localhost:8080/genres -> Get All Genres
http://localhost:8080/genre/{id} -> Get Genre By Id
Post :
http://localhost:8080/genre/add -> Add Genre
Delete :
http://localhost:8080/genre/{id} -> Delete Genre By Id
Review
Get :
http://localhost:8080/reviews -> Get All Review
http://localhost:8080/review/{id} -> Get Review by id
http://localhost:8080/review/{user_id}/{book_id} -> Get Review By user id &
Book id
http://localhost:8080/review/book/{book_id} -> Get Review by book id
Post :
http://localhost:8080/review/add -> Add Review
Put :
http://localhost:8080/review/{id} -> Update Review By Id
Delete :
http://localhost:8080/review/{id} -> Delete Review By Id
Author
Get :
http://localhost:8080/authors -> Get Authors
http://localhost:8080/author/{username} -> Get Author By Username
http://localhost:8080/authors/{id} -> Get Author By Id
Post :
http://localhost:8080/authors/add -> Add Author