Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 556 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 556 Bytes

grapi

Start

  1. npm install
  2. make a grapi.yml
  3. npm run dev

Example grapi.yml

---
api_url: http://api.run.pviotal.io

Example query

curl -X POST -H "Content-Type: application/graphql" -H "Authorization: $(cf oauth-token)" localhost:5000/graphql -d "{apps(limit: 1) {name, packages {guid, state}, processes {guid, type, allocated_memory_mb, instance_count, instances {index, actual_memory_mb}, routes {host}}, droplets {guid, state, package {guid}}, current_droplet {guid}}, tasks {name, command, droplet {guid}}}" | jq