Simple Express server for testing PCRS (Pharmacy Claims Reimbursement System) integrations.
# Install dependencies
npm install
# Start the server
npm startServer will run on: http://localhost:3001 ✅
GET /portal/pharmacy-3rd-gen/sec/p2p/download/exception?filename=example.xml- Downloads files from the
public/folder - Supports:
.xml,.zipfiles - Returns proper Content-Type headers
POST /portal/pharmacy-3rd-gen/sec/p2p/3.4/upload/file- File upload endpoint (max 100MB)
- Field name:
pharmacyFile - Files saved to
uploads/folder with original names - Returns XML response (currently always returns error response)
OPTIONS *- Handles CORS preflight requests
- Returns HTTP 200
- ✅ CORS enabled for cross-domain requests
- ✅ File uploads with multer (100MB limit)
- ✅ File downloads from public folder
- ✅ Proper Content-Type headers (XML/ZIP)
- ✅ No-cache headers for fresh responses
- ✅ Auto-creates
public/anduploads/folders - ✅ Simple and lightweight
├── server.js # Main server file 🎯
├── package.json # Dependencies & scripts 📋
├── public/ # Downloadable files folder 📂
├── uploads/ # Uploaded files folder 📤
└── README.md # This file 📖
# Download XML file
curl "http://localhost:3001/portal/pharmacy-3rd-gen/sec/p2p/download/exception?filename=test.xml"
# Download ZIP file
curl "http://localhost:3001/portal/pharmacy-3rd-gen/sec/p2p/download/exception?filename=data.zip"# Upload file using curl
curl -X POST http://localhost:3001/portal/pharmacy-3rd-gen/sec/p2p/3.4/upload/file \
-F