A secure web API built with Rust and Actix-web framework, featuring JWT authentication, PostgreSQL database integration, and robust error handling.
-
Clone the repository:
git clone https://github.com/iibabyy/eAPI.git --depth 1 cd eAPI -
Build and run the application:
make
Note: If you want to run it in background, you can use:
make detach
The API is self-documented using Swagger UI. Once the application is running, you can access the interactive documentation by navigating to:
From there, you can view all available endpoints, see their request/response models, and test them directly from your browser.
- JWT-based Authentication: Secure authentication using JSON Web Tokens
- Token Refresh: Endpoint for refreshing authentication tokens
- Token Revocation: Support for invalidating tokens (logout)
- Last Active Token Tracking: Prevents token reuse after logout
- User Registration: Create new user accounts
- User Login: Authenticate existing users
- Password Security: BCrypt hashing for secure password storage
- PostgreSQL Integration: Robust database support using SQLx
- Transaction Support: Database transactions for data integrity
- Connection Pooling: Efficient database connection management with deadpool