npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sap/ux-ui5-fe-mockserver-middleware

v1.6.5

Published

SAP Fiori tools - UI5 middleware for the Fiori elements mock server

Downloads

4,162

Readme

This package has been deprecated in favor of @sap-ux/ui5-middleware-fe-mockserver

Upgrade

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 !

Features

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.

Installation

  1. Get Node.js
  2. Install the mockserver middleware
    npm install @sap/ux-ui5-fe-mockserver-middleware

Usage

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

Support

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.