Skip to content

Instantly share code, notes, and snippets.

@s-grzesik
Created August 30, 2018 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-grzesik/28d5c8cbfa3deefac4d50a0056030a5b to your computer and use it in GitHub Desktop.
Save s-grzesik/28d5c8cbfa3deefac4d50a0056030a5b to your computer and use it in GitHub Desktop.
$ DATA='{"body":"{\"url\":\"https://kovan.infura.io/kb56QStVQWIFv1n5fRfn\",\"is_leader\":true}"}'
$ sls invoke -f add_backend -d $DATA -s dev
{
"statusCode": 201,
"body": "{\"url\": \"https://kovan.infura.io/kb56QStVQWIFv1n5fRfn\", \"is_leader\": true, \"is_healthy\": false, \"when_added\": \"2018-07-02T11:50:47.762447\"}"
}
$ DATA='{"body":"{\"url\":\"http://kovan-parity-1.rumblefishdev.com:8545\",\"is_leader\":false}"}'
$ sls invoke -f add_backend -d $DATA -s dev
{
"statusCode": 201,
"body": "{\"url\": \"http://kovan-parity-1.rumblefishdev.com:8545\", \"is_leader\": true, \"is_healthy\": false, \"when_added\": \"2018-07-02T11:50:49.281928\"}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment