https://github.com/gregorwolf/mock-service-product
CAP Based Mock Service for EPM Products with Docker
https://github.com/gregorwolf/mock-service-product
Last synced: over 1 year ago
JSON representation
CAP Based Mock Service for EPM Products with Docker
- Host: GitHub
- URL: https://github.com/gregorwolf/mock-service-product
- Owner: gregorwolf
- License: mit
- Created: 2019-11-03T16:11:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T21:55:39.000Z (almost 6 years ago)
- Last Synced: 2025-02-13T08:52:36.544Z (over 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple BUPA Mock Service
## Description
This is a simple Business Partner mock service that emulates the [OData Mock Service](https://sap.github.io/cloud-s4-sdk-book/pages/mock-odata.html) that was [supplied for the "Extending SAP S/4HANA" book](https://sap.github.io/cloud-s4-sdk-book/pages/mock-odata.html) and openSAP course. It exists primarily as a starting point for an SAP TechEd 2019 tutorial mission relating to the SAP Cloud Application (CAP) Programming Model and the SAP Cloud SDK.
## Requirements
This service is powered by CAP and is based upon a Core Schema Notation (CSN) definition of the original [Business Partner service API](https://api.sap.com/api/API_BUSINESS_PARTNER/overview). Note that this definition resource is not included in this repository.
This is a Node.js flavored CAP based project, and so both Node.js and CAP are required.
- Retrieve and install Node.js following the links and instructions on the [official Node.js website](https://nodejs.org)
- Install the CAP tools by following the instructions that can be found in this beginner tutorial: [Create a Business Service with Node.js using Visual Studio Code](https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html)
## Download and installation
You can download this repository in the normal way, i.e. with `git clone`.
### Starting the service
1. Install dependencies with `npm install`
1. Retrieve and save the `API_BUSINESS_PARTNER.json` CSN file to a new directory `srv/external/csn/`
1. Start the service with `npm start`
1. Access the address data at
## Known issues
None.
## How to obtain support
Support for this content will be provided only within the context of SAP TechEd 2019, onsite, at the Developer Garage. Otherwise, this content is provided "as-is" with no other support.
## License
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
This file is licensed under the SAP Sample Code License except as noted otherwise in the [LICENSE](LICENSE) file.