Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ihfaz297/MND/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The favorites endpoints allow authenticated users to save frequently used routes for quick access. Each user can save up to 10 favorite routes.Get Favorites
Headers
Bearer token obtained from authentication
Response Fields
Number of saved favorites for this user
Array of favorite route objects
Create Favorite
Headers
Bearer token obtained from authentication
Request Body
User-friendly name for this favorite routeExample: “Morning Commute”, “Weekend Shopping”
Origin node ID. Must be a valid node.Example:
TILAGOR, CAMPUSDestination node ID. Must be a valid node.Example:
CAMPUS, MEDICALDefault departure time in HH:MM format. Defaults to “08:00” if not provided.Example:
08:30, 17:00Response Fields
Indicates if the favorite was saved successfully
Confirmation message
The created favorite object with generated ID and timestamp
Error Responses
Missing Required Fields (400)Update Favorite
Path Parameters
Favorite ID (UUID)
Headers
Bearer token obtained from authentication
Request Body
Updated label for the favorite
Updated default time in HH:MM format
The
from and to fields cannot be updated. Create a new favorite if you need a different route.Error Responses
Not Found (404)Delete Favorite
Path Parameters
Favorite ID (UUID)
Headers
Bearer token obtained from authentication
Error Responses
Not Found (404)Usage Examples
Save Morning Commute
Quick Route Planning with Favorites
Update Multiple Favorites
Favorite Limits
Each user can save up to 10 favorites. This limit prevents database bloat and encourages users to save only their most frequent routes.
Why 10 Favorites?
- Most users have 3-5 regular routes
- 10 allows flexibility for occasional routes
- Keeps the favorites list manageable
- Reduces server storage requirements
Data Persistence
Favorites are stored in the server-side JSON file:Security
User Isolation
Each user can only access their own favorites:Duplicate Prevention
The API prevents duplicate favorites for the same from/to combination:Related Endpoints
Authentication
Get auth token for favorites
Route Planning
Use favorites with route planning
Nodes
Valid from/to node IDs
Profile
View user information