← Gateway

API Sandbox

Debug raw outputs directly against the backend systems in real-time.

Checking heartbeat...

Base: http://localhost:5001/api

🌐 Public Marketplace

Browse Live Pharmacies
GET
/api/public/pharmacies
Fetches the list of strictly approved pharmacies bypassing auth.
Pharmacy Specific Inventory
GET
/api/public/pharmacies/1/inventory
Live snapshot of what medicines are physically present at pharmacy #1 right now.
Inject Mock Order Payload
POST
/api/public/orders
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
POST
/api/auth/login
Requests an active JWT session token to access secure dashboard routes.
{ "email": "usmanafridi826@gmail.com", "password": "1122" }
Core Operating Metrics
GET
/api/dashboard/stats
Fetches top-level system statistics (Revenue, Orders, Low Stock). AUTH REQUIRED.