I have made this project to make it possible to interact with Cloud Foundry platform using their APIs.
The library uses both V3 and V2 version of APIs because some services are only available in the V2 version.
For now I have implemented only a few APIs. The ones that I need
- Get the list of all organizations
- Get the list of users for an organization
- Get the list of all spaces
- Add a manager to an organization
With npm
npm install --save cf-http-client
With yarn
yarn install cf-http-client
import { cf } from 'cf-http-client'
const client = await cf('YOUR_ENDPOINT').login('USERNAME', 'PASSWORD')
const organizations = await client.organizations.list()