Skip to content

Commit ee551bb

Browse files
authored
Merge pull request #186 from delabassee/flowdoc
removed some legacy stuff (fn call & route)
2 parents 9c590d7 + 391a158 commit ee551bb

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

docs/FnFlowsUserGuide.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,22 @@ $ fn config app flows-example COMPLETER_BASE_URL "http://$DOCKER_LOCALHOST:8081"
199199

200200
### Run your Flow function
201201

202-
You can now run your function using `fn call` or HTTP and curl:
202+
You can now run your function using `fn invoke` or HTTP.
203203

204204
```
205-
$ echo 10 | fn call flows-example /primes
205+
$ echo 10 | fn invoke flows-example primes
206206
The 10th prime number is 29
207207
```
208208

209+
To invoke your function via HTTP, you need to know its invocation endpoint (or the function needs to have an HTTP trigger defined).
210+
211+
```
212+
$ fn inspect fn flows-examples primes
209213
```
210-
$ curl -XPOST -d "10" http://localhost:8080/r/flows-example/primes
214+
215+
Take note of the `fnproject.io/fn/invokeEndpoint` URL and invoke it (ex. using curl).
216+
217+
$ curl -X POST -d "10" http://localhost:8080/invoke/...
211218
The 10th prime number is 29
212219
```
213220

0 commit comments

Comments
 (0)