Update to 1.0.0.M4

This commit is contained in:
Dave Syer
2018-02-20 19:25:11 +00:00
parent 8cd2675986
commit 72efd58675
43 changed files with 75 additions and 68 deletions

View File

@@ -22,14 +22,14 @@ $ curl localhost:8080/admin
Deploy a sample like this:
```
$ curl localhost:8080/admin/pojos -d path=maven://com.example:function-sample-pojo:1.0.0.BUILD-SNAPSHOT
$ curl localhost:8080/admin/pojos -d path=maven://com.example:function-sample-pojo:1.0.0.M4
{"id":"81c568e36c7909ec1dd841aa7ee6d3e3"}
```
(takes about 500ms, once the local Maven cache is warm). Deploy another one:
```
$ curl localhost:8080/admin/sample -d path=maven://com.example:function-sample:1.0.0.BUILD-SNAPSHOT
$ curl localhost:8080/admin/sample -d path=maven://com.example:function-sample:1.0.0.M4
{"id":"cb2fdb3130f6349f143f4686848ea90f"}
```
@@ -37,14 +37,14 @@ Undeploy the first one:
```
$ curl localhost:8080/admin/pojos -X DELETE
{"name":"81c568e36c7909ec1dd841aa7ee6d3e3","id":"pojos","path":"maven://com.example:function-sample-pojo:1.0.0.BUILD-SNAPSHOT"}
{"name":"81c568e36c7909ec1dd841aa7ee6d3e3","id":"pojos","path":"maven://com.example:function-sample-pojo:1.0.0.M4"}
```
List the deployed apps:
```
$ curl localhost:8080/admin
{"sample":{"name":"sample","id":"cb2fdb3130f6349f143f4686848ea90","path":"maven://com.example:function-sample:1.0.0.BUILD-SNAPSHOT"}}
{"sample":{"name":"sample","id":"cb2fdb3130f6349f143f4686848ea90","path":"maven://com.example:function-sample:1.0.0.M4"}}
```
Send an event to one of the functions: