Create a simple web service to abstract the CF API
It's very simple to get this project up and running:
- Clone the repo
- Install dependencies
npm install
- Configure your
props.json
- Run the project
node index.js
The app currently starts up on
process.env.PORT || 8888
and then listens for a request. You can visit a URL such as http://localhost:8888/apps
and it will parse the context as apps
and run the appropriate CF API call. You can also do complex queries such as
http://localhost:8888/apps?q=name IN <appname>
to do things like search for an app with <appname>
. For this specific example, please look at the API Reference.
This project is based on the js-cfclient NPM. See more information there.
There is an example props.json.example
file that you can copy/paste/update. The parameters are:
protocol
=>http
orhttps
host
=> FQDN or IP address of the PCF or CF host (e.g.api.mydomain.com
)username
=> Username to access the apipassword
=> Password for the given usernameskipSslValidation
=> Set totrue
when using self-signed certs
Please use the Issues tab to report any problems or feature requests.