Checking heartbeat...
Base: http://localhost:5001/api
🌐 Public Marketplace
Browse Live Pharmacies
Fetches the list of strictly approved pharmacies bypassing auth.
Pharmacy Specific Inventory
Live snapshot of what medicines are physically present at pharmacy #1 right now.
Inject Mock Order Payload
Simulates the patient wallet UI pushing an order to the ERP system.
{
"pharmacy_id": 1,
"patient_id": "EXT_PAT_001",
"patient_name": "John Doe",
"patient_phone": "+923001234567",
"medicines": [ { "medicine_id": 1, "quantity": 1, "unit_price": 25.00 } ],
"payment_method": "cash"
}
🛡️ Secure Dashboard ERP
JWT Bearer token is automatically attached after Logging in below.
System Authentication
Requests an active JWT session token to access secure dashboard routes.
{
"email": "usmanafridi826@gmail.com",
"password": "1122"
}
Core Operating Metrics
Fetches top-level system statistics (Revenue, Orders, Low Stock). AUTH REQUIRED.