mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
17 lines
448 B
Bash
Executable File
17 lines
448 B
Bash
Executable File
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
|
|
|