consume-destination-scp-cf
NodeJS Module for accessing destination details on SAP Cloud Platform Cloud Foundry stack
Install
npm i consume-destination-scp-cf
Prerequisites
- Destination service instance created
- Destination configured
- All of the above instances bound to the node app, e.g. via
manifest.yml
:applications:- name: my_apppath: my_appmemory: 128Mservices:- destination-instance
Usage
const consumeDestination = ;// Promise chain
API
consume-destination-scp-cf(options)
url
= Optional, the url to call in the destination, absolute path (including leading slash) e.g. /api/v1/jsondestinationInstance
= Name of the instance of the destination servicedestinationName
= Name of the destination to usehttpMethod
= HTTP method to use on Destination. Supported GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS.payload
= Optional, payload for POST, PUT or PATCH
License
MIT
References
- Adaptation of vobu/sap-cf-destination to consume destination without Connectivity and XSUAA services.