Download OpenAPI specification:
API documentation for TripFlow, the travel planning application.
Returns optimized route geometry and summary from ordered waypoints.
| profile required | string Enum: "DRIVING" "DRIVING_TRAFFIC" "WALKING" "CYCLING" |
required | Array of objects (MapCoordinateDTO) [ 2 .. 25 ] items |
| alternatives | boolean |
| steps | boolean |
{- "profile": "DRIVING",
- "waypoints": [
- {
- "latitude": -90,
- "longitude": -180
}, - {
- "latitude": -90,
- "longitude": -180
}
], - "alternatives": true,
- "steps": true
}Submits a request for AI processing based on user preferences.
| aiPrompt | string [ 0 .. 2000 ] characters |
| destination | string [ 0 .. 200 ] characters |
| style | string [ 0 .. 100 ] characters |
| budget | number <double> |
| lodging | string [ 0 .. 100 ] characters |
| duration | string [ 0 .. 50 ] characters |
| interests | Array of strings [ 0 .. 20 ] items |
{- "aiPrompt": "string",
- "destination": "string",
- "style": "string",
- "budget": 0.1,
- "lodging": "string",
- "duration": "string",
- "interests": [
- "string"
]
}Updates a collaborator's role. Only owner can do this.
| itineraryId required | integer <int64> |
| username required | string |
| role required | string Enum: "EDITOR" "VIEWER" "OWNER" |
{- "role": "EDITOR"
}Sends an invitation to a user to collaborate on an itinerary. Only owner can do this.
| itineraryId required | integer <int64> |
| username required | string non-empty |
| role required | string Enum: "EDITOR" "VIEWER" "OWNER" |
{- "username": "string",
- "role": "EDITOR"
}Updates a user by their username.
| username required | string |
| name | string [ 0 .. 50 ] characters |
| description | string [ 0 .. 500 ] characters |
| location | string [ 0 .. 100 ] characters |
| notificationsAllowed | boolean |
{- "name": "string",
- "description": "string",
- "location": "string",
- "notificationsAllowed": true
}Verifies a user account using the provided code.
| username required | string non-empty |
| code required | string [ 0 .. 10 ] characters |
{- "username": "string",
- "code": "string"
}Resets password using username/email, OTP code, and new password.
| username required | string non-empty |
| code required | string non-empty |
| password required | string non-empty |
| confirmPassword required | string non-empty |
{- "username": "string",
- "code": "string",
- "password": "string",
- "confirmPassword": "string"
}Registers a new user with the provided details.
| email required | string <email> [ 0 .. 255 ] characters |
| username required | string non-empty |
| password required | string non-empty |
| confirmPassword required | string non-empty |
{- "email": "user@example.com",
- "username": "string",
- "password": "string",
- "confirmPassword": "string"
}Authenticates a user and initiates a session.
| username required | string non-empty |
| password required | string non-empty |
{- "username": "string",
- "password": "string"
}Updates an existing itinerary for the authenticated user.
| id required | integer <int64> |
| id | integer <int64> |
| title required | string [ 0 .. 200 ] characters |
| place | string [ 0 .. 200 ] characters |
| people | integer <int32> |
| budget | number <double> |
| date | string [ 0 .. 50 ] characters |
| tags | Array of strings [ 0 .. 30 ] items |
| updatedCount | integer <int64> |
| status | string Enum: "DRAFT" "PLANNED" "ONGOING" "COMPLETED" |
Array of objects (ItineraryDayDTO) | |
| countDays | integer <int32> |
object (ExternalImageDTO) |
{- "id": 0,
- "title": "string",
- "place": "string",
- "people": 0,
- "budget": 0.1,
- "date": "string",
- "tags": [
- "string"
], - "updatedCount": 0,
- "status": "DRAFT",
- "days": [
- {
- "day": 0,
- "activities": [
- {
- "activity": "string",
- "details": "string",
- "location": {
- "name": "string",
- "address": "string",
- "coordinates": {
- "latitude": 0.1,
- "longitude": 0.1
}
}, - "time": "string",
- "duration": "string"
}
]
}
], - "countDays": 0,
- "coverImage": {
- "imageUrl": "string",
- "altDescription": "string",
- "authorUsername": "string"
}
}Creates a new itinerary for the authenticated user.
| id | integer <int64> |
| title required | string [ 0 .. 200 ] characters |
| place | string [ 0 .. 200 ] characters |
| people | integer <int32> |
| budget | number <double> |
| date | string [ 0 .. 50 ] characters |
| tags | Array of strings [ 0 .. 30 ] items |
| updatedCount | integer <int64> |
| status | string Enum: "DRAFT" "PLANNED" "ONGOING" "COMPLETED" |
Array of objects (ItineraryDayDTO) | |
| countDays | integer <int32> |
object (ExternalImageDTO) |
{- "id": 0,
- "title": "string",
- "place": "string",
- "people": 0,
- "budget": 0.1,
- "date": "string",
- "tags": [
- "string"
], - "updatedCount": 0,
- "status": "DRAFT",
- "days": [
- {
- "day": 0,
- "activities": [
- {
- "activity": "string",
- "details": "string",
- "location": {
- "name": "string",
- "address": "string",
- "coordinates": {
- "latitude": 0.1,
- "longitude": 0.1
}
}, - "time": "string",
- "duration": "string"
}
]
}
], - "countDays": 0,
- "coverImage": {
- "imageUrl": "string",
- "altDescription": "string",
- "authorUsername": "string"
}
}Creates a new itinerary for the authenticated user.
| id | integer <int64> |
| title required | string [ 0 .. 200 ] characters |
| place | string [ 0 .. 200 ] characters |
| people | integer <int32> |
| budget | number <double> |
| date | string [ 0 .. 50 ] characters |
| tags | Array of strings [ 0 .. 30 ] items |
| updatedCount | integer <int64> |
| status | string Enum: "DRAFT" "PLANNED" "ONGOING" "COMPLETED" |
Array of objects (ItineraryDayDTO) | |
| countDays | integer <int32> |
object (ExternalImageDTO) |
{- "id": 0,
- "title": "string",
- "place": "string",
- "people": 0,
- "budget": 0.1,
- "date": "string",
- "tags": [
- "string"
], - "updatedCount": 0,
- "status": "DRAFT",
- "days": [
- {
- "day": 0,
- "activities": [
- {
- "activity": "string",
- "details": "string",
- "location": {
- "name": "string",
- "address": "string",
- "coordinates": {
- "latitude": 0.1,
- "longitude": 0.1
}
}, - "time": "string",
- "duration": "string"
}
]
}
], - "countDays": 0,
- "coverImage": {
- "imageUrl": "string",
- "altDescription": "string",
- "authorUsername": "string"
}
}