Move hello-async.sh and hello-sync.sh to examples directory

This commit is contained in:
Seif Lotfy
2016-09-28 20:34:08 +02:00
parent adf1b3105e
commit 067100bf9c
2 changed files with 0 additions and 0 deletions

16
tool/examples/hello-async.sh Executable file
View File

@@ -0,0 +1,16 @@
curl -H "Content-Type: application/json" -X POST -d '{
"app": { "name":"myapp" }
}' http://localhost:8080/v1/apps
curl -H "Content-Type: application/json" -X POST -d '{
"route": {
"type": "async",
"path":"/hello-async",
"image":"iron/hello"
}
}' http://localhost:8080/v1/apps/myapp/routes
curl -H "Content-Type: application/json" -X POST -d '{
"name":"Johnny"
}' http://localhost:8080/r/myapp/hello-async