SAP Fiori OData - Mockserver admin service to list running services
npm install @sap-ux/fe-mockserver-adminAdmin service package for the SAP Fiori mockserver that provides an OData service to list currently running services.
This package provides an admin OData service that exposes information about currently registered services in a running mockserver instance. It allows you to query which services are active, their configuration, and status.
``bash`
npm install @sap-ux/fe-mockserver-admin
You need to define the admin in the plugins section of the mockerver
`yaml`
configuration:
plugins:
- "@sap-ux/fe-mockserver-admin"
Access the admin service at http://localhost:3000/admin/Services to get a list of all registered services in OData JSON format.
This package also provides a CLI binary fe-mockserver-admin to generate TypeScript mock data files from OData metadata:
`bashGenerate entity files from metadata.xml
fe-mockserver-admin generate-entity-files -m path/to/metadata.xml
This command will:
- Parse the OData metadata file
- Generate TypeScript entity files for each entity set
- Create an EntityContainer file for action handling
- Generate proper TypeScript interfaces and types
The generated files can be used as mock data contributors in your SAP Fiori mockserver setup.
Apache-2.0