Welcome to Transport API

A powerful REST API for managing transportation, subscriptions, and payments

👤

User Management

Create accounts, manage profiles, and handle authentication with secure token-based API

📅

Subscriptions

Manage subscription plans and user subscriptions with various tier levels

💳

Payments

Track payments, invoices, and billing information securely

🔐

Security

Built-in authentication, CORS support, and database integrity checks

📚

REST API

RESTful endpoints with browsable API interface for easy testing

📊

Admin Panel

Comprehensive admin interface to manage all resources

📍 Main Endpoints

🚀 Getting Started

1. Create an Account

Visit the registration page and fill in your details, or use cURL:

curl -X POST http://localhost:8000/api/users/register/ \ -H "Content-Type: application/json" \ -d '{ "username": "yourname", "email": "your@email.com", "password": "SecurePass123!", "password2": "SecurePass123!", "first_name": "Your", "last_name": "Name" }'

2. Log In

Visit the login page or use cURL to get your authentication token:

curl -X POST http://localhost:8000/api/users/login/ \ -H "Content-Type: application/json" \ -d '{ "username": "yourname", "password": "SecurePass123!" }'

3. Use Your Token

Include your token in the Authorization header for all authenticated requests:

curl -H "Authorization: Token YOUR_TOKEN_HERE" \ http://localhost:8000/api/users/profile/

📖 Full Documentation

For complete API documentation with all endpoints, see ENDPOINTS.md