
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@sap/ux-ui5-fe-mockserver-middleware
Advanced tools
SAP Fiori tools - UI5 middleware for the Fiori elements mock server
Please replace all reference of @sap/ux-ui5-fe-mockserver-middleware
in your package.json with @sap-ux/ui5-middleware-fe-mockserver
The mockserver is now open source and can be found here https://github.com/SAP/open-ux-odata
Please file all issues and remarks there !
The SAP Fiori - UI5 middleware for the Fiori elements mock server is a middleware extension for the UI5 Tooling. As an alternative to proxying OData requests to a live backend, it supports loading mock data for OData v2/v4 requests for supported Fiori elements templates. As the mock server runs locally without requiring a network connection to a backend system, it is useful for development and test scenarios.
npm install @sap/ux-ui5-fe-mockserver-middleware
In order to use the mock server, the npm module @sap/ux-ui5-fe-mockserver-middleware
needs to be added as devDependency and ui5.dependencies to package.json
, and a valid ui5.yaml
configuration needs to be provided.
Entries in package.json
[..]
"devDependencies": {
"@sap/ux-ui5-fe-mockserver-middleware": "^1"
},
"ui5": {
"dependencies": [
"@sap/ux-ui5-fe-mockserver-middleware"
]
}
[..]
Example for a yaml configuration file
specVersion: '2.0'
metadata:
name: <NAME>
type: application
server:
customMiddleware:
- name: sap-fe-mockserver
mountPath: /
afterMiddleware: compression
configuration:
annotations:
localPath: './webapp/annotations/annotation.xml'
urlPath: '/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations*'
services:
- urlPath: '/sap/opu/odata/sap/<SERVICE_NAME>'
metadataXmlPath: './webapp/localService/metadata.xml'
mockdataRootPath: './webapp/localService/data'
- urlPath: '/sap/opu/odata/sap/<OTHER_SERVICE_NAME>'
metadataXmlPath: './webapp/localService/other_metadata.xml'
mockdataRootPath: './webapp/localService/data'
Sample application
See the usage in demo apps SAP Fiori sample apps
Join the SAP Fiori tools Community. Ask Questions, Read the Latest Blogs, Explore Content. Please assign tag: SAP Fiori tools
To log an issue with SAP Fiori tools, please see Contact SAP Support.
FAQs
SAP Fiori tools - UI5 middleware for the Fiori elements mock server
The npm package @sap/ux-ui5-fe-mockserver-middleware receives a total of 1,040 weekly downloads. As such, @sap/ux-ui5-fe-mockserver-middleware popularity was classified as popular.
We found that @sap/ux-ui5-fe-mockserver-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.