Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP Cloud Application Programming Model multiple services in single destination patch

This example application demonstrates how multiple destination endpoints can be configured for a single destination. This patch introduces a new attribute destinationPath in the credentials part of the configured services:

"cds": {
    "requires": {
      "API_BUSINESS_PARTNER": {
        "kind": "odata",
        "model": "srv\\external\\API_BUSINESS_PARTNER",
        "credentials": {
          "destination": "S4HCLOUD",
          "destinationPath": "/sap/opu/odata/sap/API_BUSINESS_PARTNER"
        }
      }
    }
  }

If you want to give it a try, please store the following content in the file default-env.json the root folder of this project.

{
    "destinations": [
        {
            "name": "S4HCLOUD",
            "url": "<replace>",
            "username": "<replace>",
            "password": "<replace>"
        }
    ]
}

Make sure that you have the patch command available on your machine. Then you can run:

npm run setup

to install the dependencies, build, patch and start the app. The next time you want to start simply run:

npm run start

About

CAP patch to allow multiple services to be consumed in a single destination

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages