PaperShelf
Mode
Log in
PaperShelf API v. 1.0.0
Authentication
-
post
Register a new user
-
post
Login user
-
post
Google Sign-In
-
post
Logout user
-
post
Refresh access token
-
post
Verify email with OTP
-
post
Resend email verification OTP
-
post
Request password reset OTP
-
post
Reset password with OTP
Public - Authors
-
get
Get all authors (Public)
Admin - User Management
-
get
Get all users (Admin only)
-
get
Get user by ID (Admin only)
-
delete
Delete user by ID (Admin only)
-
patch
Update user by ID (Admin only)
User - Profile Management
-
patch
Update user profile (User only - own profile)
-
delete
Delete own account
Admin - Book Management
-
get
Get all pending books for approval (Admin only)
-
get
Search pending books (Admin only)
-
patch
Approve a book (Admin only)
-
patch
Reject a book (Admin only)
-
get
Get books pending deletion (Admin only)
-
delete
Approve book deletion (Admin only)
-
patch
Reject book deletion request (Admin only)
Author - Book Management
-
get
Get author's books (Author only)
-
post
Create a new book (Author only)
-
get
Get single book by ID (Author only - own books)
-
put
Update book (Author only - own books)
-
delete
Delete book (Author only - own books)
Public - Books
-
get
Get all books with filtering and pagination
-
get
Search books
-
get
Get all book categories
-
get
Get all book authors
-
get
Get featured books
-
get
Get book by ID
-
get
Get AI-generated book summary
Admin - Books
-
post
Create a new book (Admin only)
-
put
Update book (Admin only)
-
delete
Delete book (Admin only)
-
patch
Toggle featured status (Admin only)
User - Books
-
get
Get book by ID with cart information (Authenticated users)
Public - Reviews
-
get
Get all approved reviews for a book
User - Reviews
-
post
Add a review to a book
-
delete
Delete a review
Admin - Reviews
-
patch
Approve or reject a review (Admin only)
-
get
Get all pending reviews (Admin only)
-
get
Get all approved reviews (Admin only)
User - Wishlist
-
get
Get user's wishlist
-
post
Add book to wishlist
-
delete
Remove book from wishlist
Cart
-
get
Get user's cart
-
post
Add item to cart
-
put
Update item quantity in cart
-
delete
Remove specific item from cart
-
delete
Clear entire cart
-
get
Get AI recommendations based on cart items
Checkout
-
post
Validate cart before checkout
-
get
Get available shipping options
-
post
Process checkout and create order
-
post
Process payment for existing order
Orders
-
get
Get user's order history
-
get
Get specific order details
-
put
Update order status (Admin only)
-
put
Update payment status (Admin only)
-
get
Get all orders (Admin only)
PayPal
-
post
Create PayPal order
-
post
Capture PayPal order after approval
Categories
-
get
Get categories with icons
Schemas
-
User
-
AuthSuccessResponse
-
SuccessResponse
-
ErrorResponse
-
AuthorProfile
-
Book
-
CreateBookRequest
-
UpdateBookRequest
-
Pagination
-
Review
-
ReviewWithBookInfo
-
CartItem
-
Order
Routing
Open in Explore
Generate Code