Add a sample app with just beans that are Functions

Make it deployable via its maven coordinates in
spring-cloud-function-deployer (it is deployed by default on start
up right now, but that's just a demo)
This commit is contained in:
Dave Syer
2016-12-16 11:17:23 +00:00
parent 7408664aeb
commit c6736f959b
39 changed files with 1404 additions and 84 deletions

View File

@@ -13,7 +13,8 @@
== Run a REST Microservice using that Function:
----
./web.sh -p /words -f uppercase
./web.sh
curl -H "Content-Type=text/plain" localhost:8080/uppercase -d foo
----
== Compose Functions:
@@ -23,7 +24,7 @@
----
./registerFunction.sh -n pluralize -f "f->f.map(s->s+\"S\")"
./web.sh -p /words -f uppercase,pluralize
curl -H "Content-Type=text/plain" localhost:8080/uppercase,pluralize -d foo
----
== Run a Task Microservice using a Supplier, Function, and Consumer: