Quick Start Guide
Get your Library Management API up and running in just a few minutes. This guide will walk you through the essential steps to start using the API.Prerequisites
Before you begin, ensure you have the following installed:- Java 21 or later
- Maven 3.6+
- PostgreSQL 12+
- Git
Quick Setup
Try Your First API Calls
Once the application is running, try these sample requests:Login to get an access token
Authenticate with your credentials to receive a JWT token:Response:
Save the JWT token - you’ll need it for authenticated requests.
Make an authenticated request
Use your JWT token to fetch the list of books:Replace
YOUR_JWT_TOKEN with the token from step 2.Explore the API with Swagger
The API includes interactive Swagger documentation where you can explore and test all endpoints:- View all available endpoints
- Test API requests directly from your browser
- See request/response schemas
- Authenticate using your JWT token
Next Steps
Installation Guide
Learn about detailed installation and configuration options
Authentication
Deep dive into JWT authentication and security
Books API
Explore the Books API endpoints
Users API
Explore the Users API endpoints
Troubleshooting
Database connection failed
Database connection failed
Verify your PostgreSQL is running and the connection details are correct:Check that your environment variables are set correctly.
Port 8081 already in use
Port 8081 already in use
Change the server port in
application.properties:JWT token validation fails
JWT token validation fails
Ensure your
key_jwt environment variable is at least 256 bits (32 characters) long and matches between API calls.