Skip to content

Instantly share code, notes, and snippets.

@nikhan
Created February 3, 2015 20:07
Show Gist options
  • Save nikhan/9962581442aabff6df9f to your computer and use it in GitHub Desktop.
Save nikhan/9962581442aabff6df9f to your computer and use it in GitHub Desktop.
curl localhost:7071/blocks -d '{"type":"delay"}' #1
curl localhost:7071/blocks -d '{"type":"log"}' #2
curl localhost:7071/blocks -d '{"type":"kvGet"}' #3
curl localhost:7071/sources -d '{"type":"key-value"}' #4
curl localhost:7071/blocks -d '{"type":"isError"}' #5
curl localhost:7071/blocks -d '{"type":"latch"}' #6
curl localhost:7071/blocks -d '{"type":"kvSet"}' #7
curl localhost:7071/blocks -d '{"type":"gate"}' #8
curl localhost:7071/blocks -d '{"type":"+"}' #9
curl localhost:7071/blocks -d '{"type":"sink"}' #10
curl -X PUT localhost:7071/blocks/1/routes/1 -d '{"type":"const","value":"200ms"}'
curl -X PUT localhost:7071/blocks/1/routes/0 -d '{"type":"const","value":"counter"}'
curl -X PUT localhost:7071/blocks/7/routes/0 -d '{"type":"const","value":"counter"}'
curl -X PUT localhost:7071/blocks/8/routes/0 -d '{"type":"const","value":1.0}'
curl -X PUT localhost:7071/blocks/9/routes/1 -d '{"type":"const","value":1.0}'
curl localhost:7071/connections -d '{"source":{"id":3,"route":0},"target":{"id":2,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":7,"route":0},"target":{"id":10,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":1,"route":0},"target":{"id":3,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":3,"route":0},"target":{"id":5,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":5,"route":0},"target":{"id":6,"route":1}}'
curl localhost:7071/connections -d '{"source":{"id":6,"route":0},"target":{"id":8,"route":1}}'
curl localhost:7071/connections -d '{"source":{"id":3,"route":0},"target":{"id":6,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":8,"route":0},"target":{"id":7,"route":1}}'
curl localhost:7071/connections -d '{"source":{"id":6,"route":1},"target":{"id":9,"route":0}}'
curl localhost:7071/connections -d '{"source":{"id":9,"route":0},"target":{"id":7,"route":1}}'
curl localhost:7071/links -d '{"source":4,"block":3}'
curl localhost:7071/links -d '{"source":4,"block":7}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment