cloud-foundry-service-discovery
v0.1.7
Published
Axios based cloud foundry service discovery client for node.js. Enable nodejs application dynamically discover and call other regiesterd apps through cloud foundry service registry
Downloads
17
Maintainers
Readme
cloud-foundry-service-discovery
Axios based cloud foundry service discovery client for node.js.
Enable nodejs application dynamically discover and resolve url of other regiesterd apps through cloud foundry service registry
Installing
Note: axios is a peer dependency.
npm install axios cloud-foundry-service-discovery
Example
import {resolveAppId} from 'cloud-foundry-service-discovery'
resolveAppId("appId").then(response=>console.log(appInstanceUrl)).catch(error=>console.log(error))