Welcome to the LithoVolt API Backend! This RESTful API provides comprehensive endpoints for managing lithium battery inventory, orders, warranties, and user accounts. The API uses JWT authentication for secure access to protected resources.
1. Authentication: Send a POST request to /api/auth/login/ with your email and password to receive JWT tokens (access and refresh).
2. Authorization: Include the access token in the Authorization header: Authorization: Bearer YOUR_TOKEN
3. Headers: Always include Accept: application/json header with your requests.
4. Token Refresh: When your access token expires, use the refresh token to obtain a new one from /api/auth/refresh/.