Skip to content

Instantly share code, notes, and snippets.

@mattmcla
Created July 23, 2014 20:29
Show Gist options
  • Save mattmcla/553ea6f2ab135ba2410e to your computer and use it in GitHub Desktop.
Save mattmcla/553ea6f2ab135ba2410e to your computer and use it in GitHub Desktop.
export OI_TOKEN=<your orchestrate token here>
curl https://api.orchestrate.io/v0/movies/1 \
-X PUT \
-i \
-H 'Content-Type:application/json' \
-u "$OI_TOKEN:" \
-d '{"title": "Tremors","released": "1990","description": "Natives of a small isolated town defend themselves against strange underground creatures which are killing them one by one.", "genres": ["comedy","horror","sci-fi"]}'
curl https://api.orchestrate.io/v0/movies/2 \
-X PUT \
-i \
-H 'Content-Type:application/json' \
-u "$OI_TOKEN:" \
-d '{"title": "A Few Good Men","released": "1992","description": "Neo military lawyer Kaffee defends Marines accused of murder; they contend they were acting under orders.","genres": ["crime","drama","mystery"]}'
curl https://api.orchestrate.io/v0/movies/3 \
-X PUT \
-i \
-H 'Content-Type:application/json' \
-u "$OI_TOKEN:" \
-d '{ "title": "Apollo 13", "released": "1995", "description": "Three astronauts must devise a strategy to return to Earth safely after their spacecraft undergoes massive internal damage.", "genres": [ "adventure", "drama", "history" ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment