Skip to content

Commit

Permalink
Curl examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Stubbs committed Jul 15, 2015
1 parent 42bae6f commit d7f0c2a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions actors/curl_examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# Some simple examples exercising the APIs with curl
curl localhost:5000/actors
curl -X POST --data "name=foo&image=busybox" localhost:5000/actors
curl -X POST --data "name=bar&image=bar_image&description=The bar actor" localhost:5000/actors
curl -X POST --data "name=foo&image=busybox&description=A second foo actor" localhost:5000/actors
curl localhost:5000/actors/foo_0
curl localhost:5001/actors/foo_0/messages
curl localhost:5000/actors/foo_0/state
curl -X POST --data "state=some state" localhost:5000/actors/foo_0/state
curl localhost:5000/actors/foo_0/state
curl localhost:5000/actors/foo_0/executions
curl -X POST --data "cpu=31&io=114&runtime=8256" localhost:5000/actors/foo_0/executions
curl -X POST --data "cpu=9&io=5&runtime=1000" localhost:5000/actors/foo_0/executions
curl localhost:5000/actors/foo_0/executions

0 comments on commit d7f0c2a

Please sign in to comment.