A Flask-based REST API for managing travel itineraries and trip planning.
- 🔐 User Authentication (JWT-based)
- 🗺️ Trip Management
- 📅 Itinerary Planning
- 🔒 Secure Password Hashing
- ⚡ CORS Support
- Python 3.x
- Flask
- SQLAlchemy
- Flask-JWT-Extended
- SQLite Database
- BCrypt for password hashing
-
POST /auth/register- Register a new user{ "email": "user@example.com", "password": "secure_password" } -
POST /auth/login- Login and get JWT token\{ "email": "user@example.com", "password": "secure_password"
}
### Trips
- `GET /trips` - Get all trips
- `POST /trips` - Create a new trip
```json
{
"destination": "Paris, France",
"start_date": "2024-06-15T00:00:00Z",
"end_date": "2024-06-22T00:00:00Z",
"latitude": 48.8566,
"longitude": 2.3522,
"itinerary": {}
}
GET /trips/<trip_id>- Get a single tripPUT /trips/<trip_id>- Update a tripDELETE /trips/<trip_id>- Delete a trip