PackagePackagetypeA library you install and call yourself.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

@sap-ux/fe-mockserver-plugin-cds

Lets the Fiori Elements mock server take a CDS file as its metadata source, so a UI is developed against the real model before a service exists.

Facts

Latestv1.2.6ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
TestingCAPTestingcapabilityProving the service still does what it did — against the model and the handlers, without a deployed system and without a database somebody has to keep clean.

Who is behind it

SAPSAPOrganisationMaintains this
In the atlas: maintains 137, wrote 14
@SAP
maintainerAndis RedmansPersonContributes to this
In the atlas: contributes to 13
@815are
AnjanPersonContributes to this
In the atlas: contributes to 7
@anjan-poonacha
Apurv TrivediPersonContributes to this
In the atlas: contributes to 1
@Apurvtrivedi
bthillayPersonContributes to this
In the atlas: contributes to 1
@bthillay
d023613PersonContributes to this
In the atlas: contributes to 1
@d023613
Austin DevinePersonContributes to this
In the atlas: maintains 7, contributes to 25
@devinea
Dilpreet KaurPersonContributes to this
In the atlas: contributes to 1
@dilpreet101
Dirk TeufelPersonContributes to this
In the atlas: contributes to 19
@drktfl
erlethorPersonContributes to this
In the atlas: contributes to 2
@erlethor
Dominik HeimPersonContributes to this
In the atlas: contributes to 25
@heimwege
28 contributors

What it declares

Every artifact

Type
Package
Origin
By SAP

As a package

Where it runs
Inside its host
Distributed through
npm

Connections1

@sap-ux/fe-mockserver-plugin-cds connections@sap-ux/fe-mockserver-plugin-cdsPROVIDES→ provides1provides authoredTesting

Install

npm add @sap-ux/fe-mockserver-plugin-cds

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from SAP/open-ux-odata under Apache-2.0, read
SAP/open-ux-odata/packages/fe-mockserver-plugin-cds/README.mdOn GitHub

@sap-ux/fe-mockserver-plugin-cds

MetadataProcessor plugin for the fe-mockserver that allows to use cds file as source for the metadataPath.

Installation

npm npm install --save-dev @sap-ux/fe-mockserver-plugin-cds

yarn yarn add @sap-ux/fe-mockserver-plugin-cds --dev

pnpm pnpm add @sap-ux/fe-mockserver-plugin-cds --dev

Note: You will also need to install and provide a @sap/cds-compiler version.

Usage

In the mockserver configuration, specify that you want to use this plugin for the metadata processing as follows :

 - name: sap-fe-mockserver
     beforeMiddleware: compression
     configuration:
       metadataProcessor: 
         name: "@sap-ux/fe-mockserver-plugin-cds"
       service:
         urlPath: /here/goes/your/serviceurl
         metadataPath: ./webapp/localService/metadata.cds
         mockDataPath: ./webapp/localService/mockdata

You can also specify that you want this to generate a v2 service by using the following syntax

 - name: sap-fe-mockserver
     beforeMiddleware: compression
     configuration:
       metadataProcessor: 
        name: "@sap-ux/fe-mockserver-plugin-cds"
        options: 
          odataVersion: v2
       service:
         urlPath: /here/goes/your/serviceurl
         metadataPath: ./webapp/localService/metadata.cds
         mockDataPath: ./webapp/localService/mockdata

i18n

If you use i18n reference in your project the plugin will automatically replace the i18n reference with the actual value from the i18n file. The i18n file should be in the same folder as the metadata file and should be named i18n.properties

  • or in an i18n folder in the same directory as the metadata file.
  • or in an _i18n folder in the same directory as the metadata file.
  • or in an _i18n folder one level above the metadata file.
  • or you can define i18nPath property in the configuration to add more location relative to the cds file
 - name: sap-fe-mockserver
     beforeMiddleware: compression
     configuration:
       metadataProcessor: 
        name: "@sap-ux/fe-mockserver-plugin-cds"
        options: 
          odataVersion: v2
       service:
         urlPath: /here/goes/your/serviceurl
         metadataPath: ./webapp/localService/metadata.cds
         mockDataPath: ./webapp/localService/mockdata
         i18nPath: ../otherlocation/i18n // relative to the metadata file

Keywords

CDS Plugin Mockserver

Apache-2.0, read

History

Latest

v1.2.6

Fixes 1

Notes
Patch Changes
  • e13606e: We now also support CDS 5.x
  1. v1.2.5

    Fixes 1

    Notes
    Patch Changes
    • a34e9e2: More i18n support
  2. v1.2.4

    Fixes 1

    Notes
    Patch Changes
    • e1ddd79: security patch
  3. v1.2.3

    Fixes 1

    Notes
    Patch Changes
    • 50bfb29: feat: Enhance mock server with service-level metadata processor override
  4. v1.2.2

    Fixes 1

    Notes
    Patch Changes
    • e504183: Fix extra ,
  5. v1.2.1

    Fixes 1

    Notes
    Patch Changes
    • 7e879e3: Using and i18n works better
  6. v1.2.0

    Features 1

    Notes
    Minor Changes
    • 06d1cab: CDS Parsing now respects proper CDS syntax for multiple files
  7. v1.1.0

    Features 1

    Notes
    Minor Changes
    • 2821157: Bump version to account for new node version support
  8. v1.0.5

    Fixes 1

    Notes
    Patch Changes
    • de67a11: Update to @sap/cds-compiler 4.x
  9. v1.0.4

    Fixes 1

    Notes
    Patch Changes
    • fce4c15: Relax the range of supported CDS compiler versions
  10. v1.0.3

    Fixes 1

    Notes
    Patch Changes
    • 8a640cf: update to CDS compiler v3
  11. v1.0.2

    Fixes 1

    Notes
    Patch Changes
    • 05ebb82: Allow to separate cds file in different files
  12. v1.0.1

    Fixes 1

    Notes
    Patch Changes
    • 069270b: Initial open source release of the SAP UX FE Mockserver
  13. v0.5.3

    Fixes 1

    Notes
    Patch Changes
    • b7bd95f: The description and content of the package was ajusted
  14. v0.5.2

    Fixes 1

    Notes
    Patch Changes
    • 3ed5c7c: Add support for parsing sap* inline annotations for entity types
  15. v0.5.1

    Fixes 1

    Notes
    Patch Changes
    • f1e5c5f: Initial version of modules
1,217downloads per week, npm
Weekly downloads for @sap-ux/fe-mockserver-plugin-cds26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 1217.27 Apr – 3 May: 4,8014 May – 10 May: 4,26311 May – 17 May: 6,45818 May – 24 May: 4,10125 May – 31 May: 4,3241 Jun – 7 Jun: 3,4218 Jun – 14 Jun: 10,17215 Jun – 21 Jun: 7,10822 Jun – 28 Jun: 5,15929 Jun – 5 Jul: 3,6146 Jul – 12 Jul: 3,70113 Jul – 19 Jul: 4,57020 Jul – 26 Jul: 4,54327 Jul – 2 Aug: 3,5973 Aug – 9 Aug: 4,90510 Aug – 16 Aug: 2,93217 Aug – 23 Aug: 4,26224 Aug – 30 Aug: 4,26831 Aug – 6 Sept: 3,8107 Sept – 13 Sept: 3,12414 Sept – 20 Sept: 4,39121 Sept – 27 Sept: 5,77028 Sept – 4 Oct: 6,4035 Oct – 11 Oct: 5,81912 Oct – 18 Oct: 2,03819 Oct – 25 Oct: 1,217
Testing
  1. com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versionsfrom CAP
  2. @cap-js/cds-testTest support for CAP Node.js: server start, HTTP client, assertionsfrom CAP
  3. cds-cucumberGherkin scenarios driving a running CAP servicefrom CAP
  4. sapbrunoTerminal UI running Bruno collections against a CAP servicefrom CAP
  5. cds-launchpad-pluginSandbox launchpad for all SAPUI5 apps in a CAP workspacefrom CAP
  6. enforce-export-coverageStatic check that each exported TypeScript function has a testfrom General
  7. @saptools/brunoRunner for Bruno collections against XSUAA-protected CF appsfrom BTP/BAIP

Details

Sources5
npm registrydiscovered herechecked
The discovery passdiscovered herechecked
npm registry, @sap-ux/fe-mockserver-plugin-cdsversion, releases, installschecked
github.com/git+https://github.com/SAP/open-ux-odata.gittree, pushes, contributors, CIchecked
packages/fe-mockserver-plugin-cds/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv1.2.6
first release
releases and cadence13, ~42d median
discovered vianpm registry, The discovery pass
first seen in the atlas
ecosystem and domaincap, developer-experience
Contributors28
History in the atlas3
  1. Typed cds-plugin by placement, which defaults every candidate to that. It is not one.
  2. Lets the Fiori Elements mock server take a CDS file as its metadata source, so a UI is developed against the real model before a service exists.
  3. First seen.
For your agent
Ref
artifact:sap-ux-fe-mockserver-plugin-cds
JSON
/artifacts/sap-ux-fe-mockserver-plugin-cds.json
MCP
Connecting an agent