Skip to content

Instantly share code, notes, and snippets.

@ereyes01
Last active August 29, 2015 14:04
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 ereyes01/e77362b2c6dafdf8e7b6 to your computer and use it in GitHub Desktop.
Save ereyes01/e77362b2c6dafdf8e7b6 to your computer and use it in GitHub Desktop.
Containable REST API Sample Usage
$ cat box-start.json
{
"name" : "my-server",
"state" : "running"
}
$ curl -v -H "Content-Type: application/json" -X PUT \
--data "@box-start.json" -H "X-Containable-API-Key" \
https://containable-server.com/boxes/my-server
$ cat add-admin.json
{
"name" : "admin",
"shell" : "bash"
}
$ curl -v -H "Content-Type: application/json" -X POST \
--data "@add-admin.json" -H "X-Containable-API-Key" \
https://my-box.com/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment