🎬 Record OData traffic from your UI5 app and generate FE-mockserver-compatible datasets
Perfect for offline development, testing, and creating mock data without backend dependencies.
- 🔄 Multi-service & Multi-tenant: Record from multiple OData services with tenant isolation
- 📊 Complete Data Capture: Gets full entities by default (removes
$selectparameters) - ⚡ Smart & Fast: Deduplication, compression handling, real-time streaming
- 🚫 304 Prevention: Automatically removes caching headers to ensure fresh metadata (v0.0.7+)
- 🔧 Easy Control: REST API endpoints or URL parameters to start/stop recording
- 📦 Ready-to-Use: Generates files compatible with SAP FE Mockserver
npm install --save-dev ui5-middleware-odata-recorderAdd to your ui5.yaml:
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
backend:
- path: /odata
url: https://your-backend.com
- name: ui5-middleware-odata-recorder
afterMiddleware: fiori-tools-proxy
configuration:
services:
- alias: mainService
version: v4
basePath: /odata/v4/main/
targetDir: webapp/localService/mainService/data💡 Tip: Disable
fiori-tools-appreloadduring recording to prevent reload loops
Start recording with URL parameter:
http://localhost:8080/index.html?__record=1Or use REST API:
# Start
curl "http://localhost:8080/__recorder/start"
# Stop
curl "http://localhost:8080/__recorder/stop"Auto-start on server load:
configuration:
autoStart: trueCreates mockserver-compatible files:
webapp/localService/mainService/
metadata.xml # Service metadata
data/
Books.json # Entity data
Orders-100.json # With tenant suffix (if configured)| Option | Default | Description |
|---|---|---|
autoStart |
false |
Start recording when middleware loads |
autoSave |
"stream" |
Write mode: "stream" or "onStop" |
removeSelectParams |
true |
Remove $select to capture full entities |
defaultTenant |
undefined |
Tenant mode: "100" or "getTenantFromSAPClient" |
controlEndpoints |
true |
Enable /__recorder/* REST API |
redact |
[] |
Field names to remove from recorded data |
For detailed guides, advanced features, and troubleshooting:
Covers:
- Multi-tenant recording
- Full entity capture details
- Advanced configuration scenarios
- Integration with CAP projects
- Troubleshooting common issues
Apache-2.0 © Marian Zeis