๐Ÿฅ Aranya

System Health Dashboard

โœ“ All Systems Operational

๐Ÿ“ฑ Application

Name Aranya
Environment local
Debug Mode Enabled
PHP Version 8.2.27
Laravel Version 11.46.1

๐Ÿ—„๏ธ Database

Connection mysql
Database u609615569_aranyav2api
Host mysql
Port 3306

๐Ÿ”— External Database

Connection external_users
Database u609615569_aranya
Host 127.0.0.1

โšก Cache

Driver database
Status โœ“ Working

๐Ÿ’พ Storage

Writable Yes
Free Space 6.01 TB

๐Ÿ“‹ Queue

Driver database

๐Ÿ“Š Statistics

49
Total Users
49
Active Users
7
Total Farmers
0
Added This Week

โฐ Scheduler

Run "php artisan schedule:work" to start scheduler
Scheduled Tasks:
  • users:sync-external - Every minute

๐Ÿ”— Webhooks

โœ“ Webhook endpoints are active (public access)
Available Endpoints:
POST https://aranyav2api.dishatrust.org/api/webhook/sync-users
Trigger user sync from external database
GET https://aranyav2api.dishatrust.org/api/webhook/status
Get webhook configuration
๐Ÿ’ก Usage Example:
curl -X POST https://aranyav2api.dishatrust.org/api/webhook/sync-users

๐Ÿงช API Health Tests

Endpoint Status Response Time Message
Login endpoint โœ“ Expected
422
165.25ms Username or email is required.
Auth me โœ“ Healthy
200
47.43ms OK
Dashboard stats โœ“ Healthy
200
46.29ms OK
Farmers list โœ“ Healthy
200
54.36ms OK
Farmers lookup village โœ“ Healthy
200
37.91ms OK
Farmers detail โœ“ Healthy
200
47.54ms OK
Users list โœ“ Healthy
200
41.03ms OK
โ„น๏ธ Note: These tests use a super admin token to verify API endpoints are working correctly. "Expected" status means the endpoint responded correctly (e.g., login with wrong password returns 401).

๐Ÿ“š Authentication APIs

Method Endpoint Description Auth
POST /api/login User login
Params: email, password
๐ŸŒ Public Access
POST /api/logout User logout ๐Ÿ”’ Login Required
GET /api/me Get current user ๐Ÿ”’ Login Required
POST /api/refresh Refresh token ๐Ÿ”’ Login Required

๐Ÿ“š Farmers APIs

Method Endpoint Description Auth
GET /api/farmers List all farmers (paginated)
Params: page, per_page, search, sort_by, sort_order
๐Ÿ”’ Login Required
POST /api/farmers Create new farmer
Params: farmer_id, name, mobile_number, ...
๐Ÿ”’ Login Required
GET /api/farmers/{id} Get farmer by ID ๐Ÿ”’ Login Required
PUT /api/farmers/{id} Update farmer
Params: any farmer field
๐Ÿ”’ Login Required
DELETE /api/farmers/{id} Delete farmer ๐Ÿ”’ Login Required
GET /api/farmers/export Export farmers to Excel
Params: filters
๐Ÿ”’ Login Required
GET /api/farmers/autofill/{farmerNumber} Get farmer by farmer number ๐Ÿ”’ Login Required
GET /api/farmers/lookup/{field} Get unique values for a field
Params: search
๐Ÿ”’ Login Required
POST /api/farmers/lookup/batch Batch lookup for multiple fields
Params: fields[]
๐Ÿ”’ Login Required

๐Ÿ“š Webhook APIs

Method Endpoint Description Auth
POST /api/webhook/sync-users Trigger user sync from external database
Params: triggered_by (optional)
๐ŸŒ Public Access
GET /api/webhook/status Get webhook status and configuration ๐ŸŒ Public Access

๐Ÿ“š User Management APIs

Method Endpoint Description Auth
GET /api/users List all users ๐Ÿ”’ Login Required
POST /api/users Create new user
Params: username, name, email, password, role
๐Ÿ”’ Login Required
GET /api/users/{id} Get user by ID ๐Ÿ”’ Login Required
PUT /api/users/{id} Update user
Params: name, email, role, is_active
๐Ÿ”’ Login Required
DELETE /api/users/{id} Delete user ๐Ÿ”’ Login Required

๐Ÿ“š Dashboard APIs

Method Endpoint Description Auth
GET /api/dashboard/stats Get dashboard statistics ๐Ÿ”’ Login Required