This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.
This is a simple Business Partner mock service that emulates the OData Mock Service that was supplied for the "Extending SAP S/4HANA" book 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.
This service is powered by CAP and is based upon a Core Schema Notation (CSN) definition of the original Business Partner service API. 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
-
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
You can download this repository in the normal way, i.e. with git clone
.
- Install dependencies with
npm install
- Retrieve and save the
API_BUSINESS_PARTNER.json
CSN file to a new directorysrv/external/csn/
- Start the service with
npm start
- Access the address data at http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress
None.
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.
If you wish to contribute code, offer fixes or improvements, please send a pull request (PR). Due to legal reasons, contributors will be asked to accept a Developer Certificate of Origin (DCO) on submitting their first PR to this project. This DCO acceptance can be done in the PR itself - look out for the CLA assistant that will guide you through the simple process. SAP uses the standard DCO text of the Linux Foundation.
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.