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.
Introduction
The MND API provides intelligent route planning for the university bus system, connecting 19 locations across Sylhet, Bangladesh with 7 bus routes. The API combines real-time bus schedules with local transport options to find the fastest and most economical routes.Base URL
Available Endpoints
Core Endpoints
GET /health- System health and statisticsGET /nodes- List all 19 available locationsGET /routes/list- List all 7 bus routesGET /routes- Plan a route between two locations
Authentication Endpoints
POST /auth/send-link- Send magic login linkGET /auth/verify- Verify magic link and create sessionPOST /auth/logout- Logout and invalidate tokenGET /profile- Get authenticated user profile
Favorites Endpoints (Requires Authentication)
GET /favorites- Get user’s saved routesPOST /favorites- Save a new favorite routePUT /favorites/:id- Update a favorite routeDELETE /favorites/:id- Delete a favorite route
Bus Information Endpoints
GET /buses/upcoming- Get upcoming buses from a locationGET /buses/schedule/:routeId- Get full schedule for a routeGET /routes/:routeId- Get detailed route information
Response Format
All API responses use JSON format:Success Response
Error Response
Error Handling
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
| 200 | Success |
| 201 | Created (for POST requests) |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Authentication required |
| 404 | Not Found - Resource doesn’t exist |
| 409 | Conflict - Duplicate resource |
| 500 | Internal Server Error |
Common Error Scenarios
Invalid Node IDCORS Configuration
The API is configured with permissive CORS settings for development:Rate Limiting
The API uses Google Distance Matrix API for local transport calculations with the following limits:- Monthly Limit: 700 requests
- Daily Limit: 25 requests
- Cache: Results are cached to minimize API usage
Network Information
The API provides network statistics in the health endpoint:Data Freshness
The API loads graph data (nodes, edges, routes) on startup from JSON files:Next Steps
Authentication
Learn how to implement magic link authentication
Route Planning
Plan routes between locations
Nodes
Browse all 19 available locations
Buses
Get real-time bus information