API Endpoint Test Logs
Generated automatically by test-api.mjs.
POST /auth/admin/register
Request Payload:
{
"email": "test_api_runner@mehfil.com",
"password": "password123",
"name": "API Tester",
"role": "admin"
}
Status: 401
Response:
{
"status": false,
"message": "Unauthorized: Token required"
}
POST /auth/admin/login
Request Payload:
{
"email": "test_api_runner@mehfil.com",
"password": "password123"
}
Status: 401
Response:
{
"status": false,
"message": "Invalid email or password"
}
POST /locations
Request Payload:
{
"name": "Test City",
"latitude": 28.7041,
"longitude": 77.1025
}
Status: 401
Response:
{
"status": false,
"message": "Not authorized to access this route"
}
GET /locations?page=1&limit=5
Status: 200
Response:
{
"status": true,
"data": [
{
"_id": "6a70df475fefacf3473fcf84",
"name": "Pernambut",
"latitude": 12.9463,
"longitude": 78.7118,
"__v": 0,
"updatedAt": "2026-10-10T09:18:04.710Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 5,
"totalPages": 1
}
}
GET /venues?page=1&limit=5
Status: 200
Response:
{
"status": true,
"data": [
{
"_id": "6a95ab3d5b028be4a847935f",
"locationId": "6a70df475fefacf3473fcf84",
"ownerUid": "6a95ab365b028be4a847935e",
"name": "Star Convention Hall",
"capacity": 500,
"pricePerDay": 15000,
"address": "High Rd, beside Masjid-e-fazal, Sathkar, Tamil Nadu 635810",
"description": "STAR Convention Hall is a grand, top-rated wedding and event venue on High Road, Pernambut, Tamil Nadu. Located right beside Masjid-e-Fazal, it is highly popular for large celebrations and traditional weddings.",
"imageUrls": [],
"timings": [
"Full Day (09:00 AM - 10:00 PM)",
"Morning(09:00AM-02:00PM)",
"Evening(4:00PM-10:00PM)"
],
"status": "active",
"createdAt": "2026-08-31T16:26:37.203Z",
"updatedAt": "2026-10-10T09:19:30.340Z",
"__v": 0
},
{
"_id": "6a70df475fefacf3473fcf85",
"name": "PAB",
"locationId": "6a70df475fefacf3473fcf84",
"ownerUid": "6acf65b4217bf1c4d421f6df",
"capacity": 500,
"pricePerDay": 13000,
"address": "Pernambut, Tamil Nadu",
"description": "Premium venue in Pernambut.",
"imageUrls": [],
"timings": [
"Day 10.00 AM to 4.00 PM",
"Full Day 10.00 AM to 10.00 PM",
"Eve 6.00 PM to 10.00 PM"
],
"status": "active",
"__v": 0,
"updatedAt": "2026-10-14T11:21:28.189Z"
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 5,
"totalPages": 1
}
}
GET /bookings?page=1&limit=5
Status: 403
Response:
{
"status": false,
"message": "Unauthorized"
}