0% found this document useful (0 votes)
17 views2 pages

API Documentation

Uploaded by

mebin86547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

API Documentation

Uploaded by

mebin86547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

User Api

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

You might also like